Doc #63778 [NEW]: RFC-2822 does NOT permit LF without CR
| From: | Andy_Schmidt at HM-Software dot com | Date: | Sat, 15 Dec 2012 15:09:26 +0000 |
| Subject: | Doc #63778 [NEW]: RFC-2822 does NOT permit LF without CR | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9288@lists.php.net to get a copy of this message | ||
From: Andy_Schmidt at HM-Software dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:RFC-2822 does NOT permit LF without CR
Description:
------------
---
From manual page:
http://www.php.net/function.mail#refsect1-function.mail-parameters
---
Your manual incorrectly states for the "Message" parameter:
"Each line should be separated with a LF (\n). Lines should not be larger
than 70 characters."
Refer to the governing Internet standard on SMTP emails:
http://www.ietf.org/rfc/rfc2822.txt
2.1 "A line is a series of
characters that is delimited with the two characters carriage-return
and line-feed; that is, the carriage return (CR) character (ASCII
value 13) followed immediately by the line feed (LF) character (ASCII
value 10)."
and it clarifies further:
2.3 "CR and LF MUST only occur together as CRLF; they MUST NOT appear
independently in the body."
Your manual should be updated to read:
"Each line should be separated with a CRLF (\r\n). Lines should not be
larger than 78 characters."
--
Edit bug report at https://bugs.php.net/bug.php?id=63778&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63778&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63778&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63778&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63778&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63778&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63778&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63778&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63778&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63778&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63778&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63778&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63778&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63778&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63778&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63778&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63778&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63778&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63778&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63778&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63778&r=mysqlcfg