Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail problem - body over 998 chars

Status
Not open for further replies.

hovercraft

Technical User
Jun 19, 2006
236
US
Hello,

I have a problem when I am using mail() to send an html formated email. It works great, except that I need to put in a bunch of Legal verbiage from our lawyers which in of itself is over 998 characters. Any time I hit that threshold of 998 the entire email is blank...it sends, but it's blank.

Is there any way of getting around this?
Here is my header info
Code:
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";


$headers .= 'From: paymentcenter@xxxxx.com' . "\r\n" .
    'Reply-To: xxxxxxx@xxxxxx.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);

Thank you for any assistance!
 
i do not know of any particular problem with long emails.

i suspect that there is something in your email message that is causing problems. an escape character perhaps.

however i have often had mixed results using php's mail function. invariably i have found it easier and more reliable to use the class phpmailer.

as an aside, i would always recommend sending a plain text alternative to the html mail. use multipart-alternative as the content-type.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top