I'm having a problem with characters showing up in a multipart formatted email.
here's what i'm working with:
$body = "This is a multi-part message in MIME format.\n\n";
$body .= "--==Multipart_Boundary_xc75j85x\nContent-Type: text/plain; charset=\"iso-8859-1\"\nContent-Transfer-Encoding: 7bit\n\n";
$body .= $text_msg."\n\n";
$body .= "--==Multipart_Boundary_xc75j85x\nContent-Type: text/html; charset=\"iso-8859-1\"\nContent-Transfer-Encoding: 7bit\n\n";
$body .= $html_msg."\n\n--==Multipart_Boundary_xc75j85x--\n";
$post_string = "To: ".$recipiant_name." <".$recipiant.">\n" . "From: ".$from_name." <".$from_email.">\n";
$post_string .="MIME-Version: 1.0\n" . "Content-Type: multipart/alternative;\n boundary=\"==Multipart_Boundary_xc75j85x\"";
mail($recipiant,$subject,$body,$post_string);
The problem is, randomly i get characters in my $html_msg string replaced with "! ". These characters do show up consiently in the same spot. For Example, the output was coming out
"<! ble border=0 cellpadding=0 cellspacing=0>" when it should have read: "
<table border=0 cellpadding=0 cellspacing=0>"
The character always seems to fall in the same spot. If i add more text before it then it moves back that many characters.
Any Thoughts?