|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-09 02:53 UTC] jhaar at trimble dot co dot nz
[2004-04-08 05:23 UTC] Jon at cytekstudios dot com
[2004-07-02 13:23 UTC] php at grandrath-net dot de
[2004-07-02 13:37 UTC] vrana@php.net
[2004-07-02 17:49 UTC] curt@php.net
[2004-12-29 17:57 UTC] mez@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 09:00:01 2025 UTC |
Description: ------------ From the PHP source (ext/standard/mail.c:215): fprintf(sendmail, "To: %s\n", to); fprintf(sendmail, "Subject: %s\n", subject); if (headers != NULL) { fprintf(sendmail, "%s\n", headers); } fprintf(sendmail, "\n%s\n", message); From the manual (http://us4.php.net/manual/en/function.mail.php): Note: You must use \r\n to separate headers, although some Unix mail transfer agents may work with just a single newline (\n). The source and the manual seem to differ in their treatment of newlines. We were alerted to this problem by a customer's mail server, which is having trouble parsing "\r\n" (which is the RFC standard, right?). Expected result: ---------------- 550 error on remote SMTP server