#45955 [Opn]: Mime-encoded UTF-8 subject is limited to 47 characters.

From: Date: Mon, 08 Sep 2008 10:49:53 +0000
Subject: #45955 [Opn]: Mime-encoded UTF-8 subject is limited to 47 characters.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1142@lists.php.net to get a copy of this message
ID: 45955 Updated by: indeyets@php.net Reported By: alexanderpas at yahoo dot co dot uk Status: Open -Bug Type: Mail related +Bug Type: Documentation problem Operating System: Irrelevant PHP Version: 5.2.6 New Comment: Multiline subjects work just fine, actually. Looks like a documentation problem Previous Comments: ------------------------------------------------------------------------ [2008-08-30 16:49:29] 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> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45955&edit=1

« previous php.doc.bugs (#1142) next »