note 110429 added to function.mail
| From: | david at gmx dot de | Date: | Sat, 20 Oct 2012 23:57:13 +0000 |
| Subject: | note 110429 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191454@lists.php.net to get a copy of this message | ||
There is a note about CR/CRLF in the documentation above. This note is not correct and is a serious
BUG in PHP. It should read:
Note: mail() talks to the sendmail command on Unix/Linux which expects line endings to be the
platform's native line endings which is LF (\n) only on Unix/Linux and CRLF (\r\n) on Windows.
The sendmail will replace LF (\n) by CRLF (\r\n) automatically to comply with RFC 2822. Thus you
should use the special PHP_EOL constant to separate mail headers.
Source:
https://bugs.php.net/bug.php?id=15841
----
Server IP: 212.124.37.9
Probable Submitter: 94.216.70.73
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/110429
Del: integrated -- https://master.php.net/note/delete/110429/integrated
Del: useless -- https://master.php.net/note/delete/110429/useless
Del: bad code -- https://master.php.net/note/delete/110429/bad+code
Del: spam -- https://master.php.net/note/delete/110429/spam
Del: non-english -- https://master.php.net/note/delete/110429/non-english
Del: in docs -- https://master.php.net/note/delete/110429/in+docs
Del: other reasons-- https://master.php.net/note/delete/110429
Reject -- https://master.php.net/note/reject/110429
Search -- https://master.php.net/manage/user-notes.php