note 110429 deleted from function.mail by aharvey

From: Date: Mon, 05 Nov 2012 05:23:09 +0000
Subject: note 110429 deleted from function.mail by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191670@lists.php.net to get a copy of this message
Note Submitter: david at gmx dot de ---- 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

« previous php.notes (#191670) next »