note 53231 deleted from ref.mail by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 20:19:25 +0000 |
| Subject: | note 53231 deleted from ref.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155371@lists.php.net to get a copy of this message | ||
Note Submitter:
----
If you are seeing unwanted line breaks preceded by exclamation marks ("!") in the emails
you send with mail(), you may be having the same problem I had: exceeding the maximum line length
(998 chars) specified in RFC 2822 (http://www.faqs.org/rfcs/rfc2822.html).
You can get around this restriction by using base64 encoding: add a "Content-Transfer-Encoding:
base64" header and encode the contents with
$base64contents = rtrim(chunk_split(
base64_encode($contents)));