Hi all,

Can anybody confirm that the latest Zend_Mail has the following bugs in 
combination with Zend_Mail_Transport_Sendmail. I'm not sure whether this 
relates to Zend_Mail_Transport_Smtp too.

1) Cc and Bcc recipients are also added to the To list:
I think I traced this down to the following lines in the following methods:

Zend_Mail::_addRecipientAndHeader()
$this->_recipients[$email] = 1;

Zend_Mail::getRecipients()
return array_keys($this->_recipients);

Zend_Mail_Transport_Abstract::send()
$this->recipients = implode(',', $mail->getRecipients());

Zend_Mail_Transport_Sendmail::_sendMail()
$result = mail(
                $this->recipients,
etc...


The first argument for mail() should only contain To addresses, not all 
addresses.

This could very well only be related to Windows as per

Zend_Mail_Transport_Sendmail::_prepareHeaders()

if (0 === strpos(PHP_OS, 'WIN')) {

etc...

 Can somebody confirm that this is accurate?

2) Cc's with $name gives 'SMTP server response: 501 5.5.4 Invalid Address'
This could very well be related to bug 1 because the first argument to the 
mail() call now contains invalid filtered Cc addresses.

Please confrim this with me, so I will file a bug report.

Cheers


System:
OS: Windows XP SP3
Webserver: Apache 2.2.9 
PHP: 5.2.6 




_________________________________________________________________
Blijf altijd op de hoogte van wat jouw vrienden doen
http://home.live.com

Reply via email to