note 93428 added to function.mail

From: Date: Wed, 09 Sep 2009 17:09:46 +0000
Subject: note 93428 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-160364@lists.php.net to get a copy of this message
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"...) ---- Server IP: 217.13.201.10 Probable Submitter: 212.29.35.250 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/93428 Del: integrated -- https://master.php.net/note/delete/93428/integrated Del: useless -- https://master.php.net/note/delete/93428/useless Del: bad code -- https://master.php.net/note/delete/93428/bad+code Del: spam -- https://master.php.net/note/delete/93428/spam Del: non-english -- https://master.php.net/note/delete/93428/non-english Del: in docs -- https://master.php.net/note/delete/93428/in+docs Del: other reasons-- https://master.php.net/note/delete/93428 Reject -- https://master.php.net/note/reject/93428 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160364) next »