Hi strange-looking-man!
That's more a problem with mail() under Windows that can't be solved
in ZF. But as it uses SMTP anyway you could just switch to the SMTP
transport. Use ini_get() to get the same settings from your php.ini.
nico
<[email protected]> wrote:
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