I ran into this problem and this is the solution that worked for me. This post helped out http://us2.php.net/manual/en/ref.mail.php#53231
It references RFC 2822, and look at section 2.1.1. "Line Length Limits" for the explanation of the 998 char limit. Anyway the solution at php.net worked for me minus the rtrim.
The php code for mine is
$message = chunk_split(base64_encode($message));
Then also you must make sure the headers are using base64 for the Content-Transfer-Encoding:
$header .= "Content-Transfer-Encoding: base64\r\n\r\n";
<the todd />
Showing posts with label sending emails with php. Show all posts
Showing posts with label sending emails with php. Show all posts
Monday, July 9, 2007
exclamation mark (!) showing up in emails from PHP mail() function
Automatically generated by
the todd
on or about
11:11 AM
9
comments
Labels: php, rfc 2822, sending emails with php
Subscribe to:
Posts (Atom)