From: shane at sell dot com
Operating system: linux
PHP version: 4.3.3
PHP Bug Type: *Mail Related
Bug description: inconsistency in manual and src, possible nonstandard EOL character?
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
--
Edit bug report at http://bugs.php.net/?id=25373&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25373&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25373&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25373&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25373&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25373&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25373&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25373&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25373&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25373&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25373&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25373&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25373&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25373&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25373&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25373&r=gnused