Issue Type: Bug Created: 2007-02-16T14:40:15.000+0000 Last Updated: 2007-07-05T14:43:50.000+0000 Status: Resolved Fix version(s): - 0.9.0 (17/Mar/07)
Reporter: Philip Iezzi (iezzip) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Mail
Related issues: - ZF-989
Again, this is an issue that was previously reported to the fw-general list and is still not fixed in r3503. Sorry about not reporting it earlier as an issue. I think this is a major misbehavior of Zend_Mail and if possible should be fixed before the 0.8 release.
given the following code:
<pre class="highlight"> $mail = new Zend_Mail(); $mail->setSubject('my subject'); $mail->setBodyText('my body'); $mail->setFrom('email@example.com'); $mail->addTo('firstname.lastname@example.org'); $mail->addBcc('email@example.com'); $mail->addBcc('firstname.lastname@example.org'); //print_r($mail); $mail->send();
The print_r($mail) output before sending the mail looks fine:
<pre class="highlight"> [_headers:protected] => Array ( [Subject] => Array (  => my subject ) [From] => Array (  => "" [append] => 1 ) [To] => Array (  => [append] => 1 ) [Bcc] => Array (  => [append] => 1  => ) )
The resulting email got the following messed up header:
<pre class="highlight"> To:
I neither received the mail on email@example.com nor on firstname.lastname@example.org
Posted by Matthew Weier O'Phinney (matthew) on 2007-02-20T07:55:06.000+0000
I've done a little research on this. When using a generic transport (one that simply extends the abstract), everything works perfectly -- to and bcc addresses are reported with the correct headers. However, when I use a sendmail-type transport, I get slightly different results than those reported, but equally bad: I have no To: header at all, only Bcc headers. I'll resolve this issue shortly.
Posted by Matthew Weier O'Phinney (matthew) on 2007-02-20T08:13:44.000+0000
Should be resolved in current SVN; please test. If you continue to experience issues, please provide detailed information as to the transport, MTA, and OS used so we can better replicate the issue.
Posted by Philip Iezzi (iezzip) on 2007-02-20T17:05:57.000+0000
Now it does no longer mix To and Bcc addresses but we get double To: lines in our mail header:
<pre class="highlight">... To: Subject: my subject From: "" To: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ...
The Bcc recipients correctly receive the email but all emails contain a doubled To:
Tested on PHP 5.2.1standard-mail() transport, Postfix 2.3.6 on a Debian Linux Etch box.
Posted by Philip Iezzi (iezzip) on 2007-03-16T05:33:34.000+0000
Resolved in trunk r4010
Have you found an issue?
See the Overview section for more details.