2013-01-11
smeagol
hi!
the class "Mailer" (Mailer.class.php) contains "Cc" and "Bcc" informations in the $headers variable,
even if they are empty.
when the email is send by php the hMailserver recieves a
"RCPT TO" command which is empty.
the e-mail server hMailserver (http://www.hmailserver.com/) interprets this as a invalid address
and quits the connection. the original message will not be send.
i modified the cleanHeaders() method by unset empty recipient fields:
protected function cleanHeaders() {
....
$addrs = array('To', 'From', 'Cc', 'Bcc');
foreach($addrs as $addr) {
if(isset($this->headers[$addr])) {
$this->headers[$addr] = $this->cleanAddress($this->headers[$addr]);
}
>>>>> added
else {
unset($this->headers[$addr]);
}
<<<<< finish
}
...
For me now everything works fine.
i don't know, if it's the correct position or
maybe it can be applied into a future version.
cheers,
Smeagol