AddrAppend() for Bcc get's NOT called for SMTP! --> reimplemented AddBCC()

This commit is contained in:
Ralf Becker 2011-02-28 21:40:39 +00:00
parent c0550a5d59
commit 67a34286bb

View File

@ -131,8 +131,22 @@ class egw_mailer extends PHPMailer
{
foreach($addr as $data)
{
$this->addresses[$type] .= ($this->addresses[$type] ? ', ' : '').$data[0];
$this->addresses[$type][] = $data[0];
}
return parent::AddrAppend($type, $addr);
}
/**
* Adds a "Bcc" address.
*
* Reimplemented as AddrAppend() for Bcc get's NOT called for SMTP!
*
* @param string $address
* @param string $name
* @return boolean true on success, false if address already used
*/
public function AddBCC($address, $name = '')
{
$this->AddrAppend('Bcc', array(array($address,$name)));
}
}