You are here

function PHPMailer::AddrAppend in SMTP Authentication Support 5

Same name and namespace in other branches
  1. 7.2 smtp.phpmailer.inc \PHPMailer::AddrAppend()
  2. 7 smtp.phpmailer.inc \PHPMailer::AddrAppend()

Creates recipient headers. @access private

Return value

string

1 call to PHPMailer::AddrAppend()
PHPMailer::CreateHeader in ./smtp.module
Assembles message header. @access private

File

./smtp.module, line 1072
Enables drupal to send email directly to an SMTP server using authentication. Uses the PHPMailer class by Brent R. Matzelle.

Class

PHPMailer
PHPMailer - PHP email transport class @package PHPMailer @author Brent R. Matzelle @copyright 2001 - 2003 Brent R. Matzelle

Code

function AddrAppend($type, $addr) {
  $addr_str = $type . ": ";
  $addr_str .= $this
    ->AddrFormat($addr[0]);
  if (count($addr) > 1) {
    for ($i = 1; $i < count($addr); $i++) {
      $addr_str .= ", " . $this
        ->AddrFormat($addr[$i]);
    }
  }
  $addr_str .= $this->LE;
  return $addr_str;
}