Mads Lie Jensen wrote:
> This might very well be the problem ....
> The content of the email is build using a Zend View, and all files from
> my editor are saved with unix-lineendings, ie. LR.
> 
> I will try your suggestion, using CRLF as line-endings and test with
> that. It's just a bit tricky, since none of my computers have Outlook
> Express or the possibility to get it.

Your content and the way you create it shouldn't be the problem.
It's Zend_Mail's job (in detail the used transporter is responsible) to take
care about the given values.

For example, if you call the PHP function mail(), than mail() is your
transporter. This functions is responsible for the values you pass to this
function.

Seems like you are using the default transporter. The default transporter
seems to use PHP_EOL. Like Ryan stated, that violates RFC822 and RFC2822.
Maybe this patch will fix your problem (patched against v1.10.2):

Index: Mail/Transport/Sendmail.php
===================================================================
--- Mail/Transport/Sendmail.php (revision 21549)
+++ Mail/Transport/Sendmail.php (working copy)
@@ -58,7 +58,7 @@
      * @var string
      * @access public
      */
-    public $EOL = PHP_EOL;
+    public $EOL = "\r\n";
 
     /**
      * error information


If this won't fix your problem, could you please provide a raw dump of such
a broken mail (your provided dump is incomplete).


-- 
Regards,
Thomas


Reply via email to