php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #45955 Mime-encoded UTF-8 subject is limited to 47 characters.
Submitted: 2008-08-30 16:49 UTC Modified: 2008-11-05 09:38 UTC
Votes:5
Avg. Score:4.2 ± 0.7
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:3 (60.0%)
From: alexanderpas at yahoo dot co dot uk Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.2.6 OS: Irrelevant
Private report: No CVE-ID: None
 [2008-08-30 16:49 UTC] alexanderpas at yahoo dot co dot uk
Description:
------------
an Mime-encoded UTF-8 subject is limited to 47 characters, because php doesn't allow \n into $subject of the mail function, and RFC 2047 requires CRLF SPACE to seperate multiple lines of encoded text

php documentation:
<quote>mail() [...] $subject [...] must not contain any newline characters, or the mail may not be sent properly.</quote>

RFC 2047
<quote>An 'encoded-word' may not be more than 75 characters long, including 'charset', 'encoding', 'encoded-text', and delimiters. If it is desirable to encode more text than will fit in an 'encoded-word' of 75 characters, multiple 'encoded-word's (separated by CRLF SPACE) may be used.</quote>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-08 10:49 UTC] indeyets@php.net
Multiline subjects work just fine, actually.
Looks like a documentation problem
 [2008-11-05 09:38 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"Subject must satisfy RFC 2047."
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 02:01:29 2024 UTC