You are here

public function PHPMailer::AddrAppend in SMTP Authentication Support 7.2

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

Creates recipient headers. @access public

Return value

string

1 call to PHPMailer::AddrAppend()
PHPMailer::CreateHeader in ./smtp.phpmailer.inc
Assembles message header. @access public

File

./smtp.phpmailer.inc, line 838
The mail handler class in smtp module, based on code of the phpmailer library, customized and relicensed to GPLv2.

Class

PHPMailer
PHPMailer - PHP email transport class NOTE: Requires PHP version 5 or later @package PHPMailer @author Andy Prevost @author Marcus Bointon @copyright 2004 - 2009 Andy Prevost

Code

public function AddrAppend($type, $addr) {
  $addr_str = $type . ': ';
  $addresses = array();
  foreach ($addr as $a) {
    $addresses[] = $this
      ->AddrFormat($a);
  }
  $addr_str .= implode(', ', $addresses);
  $addr_str .= $this->LE;
  return $addr_str;
}