Doc #68829 [Opn->Dup]: mail(): \r\n is for windows only
| From: | aharvey@php.net | Date: | Wed, 14 Jan 2015 00:02:30 +0000 |
| Subject: | Doc #68829 [Opn->Dup]: mail(): \r\n is for windows only | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11853@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68829&edit=1
ID: 68829
Updated by: aharvey@php.net
Reported by: phpnet at revmaps dot no-ip dot org
Summary: mail(): \r\n is for windows only
-Status: Open
+Status: Duplicate
Type: Documentation Problem
Package: Documentation problem
Operating System: linux
PHP Version: 5.6.4
Block user comment: N
Private report: N
New Comment:
This has previously been discussed multiple times, and we believe that the current documentation is
correct: see bug #63416 for a (lengthy) back and forth.
Previous Comments:
------------------------------------------------------------------------
[2015-01-13 23:31:22] phpnet at revmaps dot no-ip dot org
Description:
------------
---
From manual page: http://www.php.net/function.mail
---
manual says:
> Each line should be separated with a CRLF (\r\n). Lines should not be larger
> than 70 characters.
which is completly wrong.
\r\n is not applicable to posix platforms. on linux it should be \n
else the generated SMTP message gets \r doubled
70 character limit is for encoded MIME content only. RFC5322 allows 998 cahacters per line in
non-MIME content but reccomends 78 as the limit.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68829&edit=1