note 93428 rejected from function.mail by danbrown
| From: | danbrown@php.net | Date: | Wed, 09 Sep 2009 17:14:37 +0000 |
| Subject: | note 93428 rejected from function.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160365@lists.php.net to get a copy of this message | ||
Note Submitter: php at mzv dot net
----
Please fix the documentation and the examples by replacing "\r\n" by PHP_EOL! After some
hours spent searching why our newsletter didn't work any more for *some* recipients I found
bigtree's comment (28-Feb-2007 01:46) that fixed the problem with mixed EOLs in the headers.
PHP on Unix internally uses LF="\n" for To+Subject headers and appends $additional_headers
unmodified. So if you don't use "\n" (may break things on Windows) or PHP_EOL there
you'll end up with mixed line endings and broken mails - ymmv.
(that's not a bug of "Some poor quality Unix mail transfer agents"...)