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 />
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
Labels: php, rfc 2822, sending emails with php
Subscribe to:
Post Comments (Atom)
9 comments:
thanks, it was very helpfull!
Yes...very helpfull!
Hallelujah! Thank you soooooooooooo much! I'm surprised this info isn't shared more for us rookies.
http://www.jeremytunnell.com/posts/really-hairy-problem-with-seemingly-random-crlf-and-spaces-inserted-in-emails
Thanks buddy,
its helped me to fixed my problem
Thanks Bro, you offer a very simple solution to a wear a complex problem.
thanks.
Thank you, very helpful!
Finally, a straight forward and clear answer to a pain in the neck issue. Thanks!
Post a Comment