Cameron Laird
2007-08-29 19:58:17 UTC
I can exhibit a minimal Zend e-mail script which appears to me to
put bad DATA on the wire. Is this the mailing list where I should
best report my observation?
Consider this:
<?php
require_once
'/usr/local/Zend/ZendFramework/library/Zend/Mail/Transport/Smtp.php';
require_once '/usr/local/Zend/ZendFramework/library/Zend/Mail.php';
$tr = new Zend_Mail_Transport_Smtp($server_host);
Zend_Mail::setDefaultTransport($tr);
$mail = new Zend_Mail();
$mail->setBodyText('This is the text of the mail.');
$mail->setFrom('cameron-/awGbKECNgO/3pe1ocb+swC/***@public.gmane.org', 'Cameron Laird');
$mail->addTo($to, 'Cameron Laird');
$mail->setSubject('This is a subject line.');
$mail->send();
echo "Success!\n";
?>
I've experimented with four MTAs so far. I get consistent results:
the DATA coming out look like
can only mean that the "To:", "Subject:", and other header elements
are to be interpreted as part of the body; that's what the duplicated
newline after "From:" accomplishes. Now what?
I'd like to report the release number of the Zend (Core? Framework?
...) I'm using. I don't understand its naming scheme, though; perhaps
one of you can help me with that, too.
Do others see this symptom? Has it been corrected already? Do I
need to patch PHP to work around this?
put bad DATA on the wire. Is this the mailing list where I should
best report my observation?
Consider this:
<?php
require_once
'/usr/local/Zend/ZendFramework/library/Zend/Mail/Transport/Smtp.php';
require_once '/usr/local/Zend/ZendFramework/library/Zend/Mail.php';
$tr = new Zend_Mail_Transport_Smtp($server_host);
Zend_Mail::setDefaultTransport($tr);
$mail = new Zend_Mail();
$mail->setBodyText('This is the text of the mail.');
$mail->setFrom('cameron-/awGbKECNgO/3pe1ocb+swC/***@public.gmane.org', 'Cameron Laird');
$mail->addTo($to, 'Cameron Laird');
$mail->setSubject('This is a subject line.');
$mail->send();
echo "Success!\n";
?>
I've experimented with four MTAs so far. I get consistent results:
the DATA coming out look like
Subject: This is a subject line.
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
This is the text of the mail.
.
(use any conventient packet sniffer). As RFC 822 teaches us, thisContent-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
This is the text of the mail.
.
can only mean that the "To:", "Subject:", and other header elements
are to be interpreted as part of the body; that's what the duplicated
newline after "From:" accomplishes. Now what?
I'd like to report the release number of the Zend (Core? Framework?
...) I'm using. I don't understand its naming scheme, though; perhaps
one of you can help me with that, too.
Do others see this symptom? Has it been corrected already? Do I
need to patch PHP to work around this?