Forum Moderators: coopster

Message Too Old, No Replies

multi type mail, random seeming ! characters being added

Trying to determine where these random seeming ! charaters are comming from

         

gcarn

4:51 pm on Nov 3, 2008 (gmt 0)

10+ Year Member



Im sending a multipart (text and html) email, and after its send, there are random seeming "!" characters being put in..

Sometimes they are in some plain text, sometimes it pops up in an inline style and breaks it, and even worse its come up in encoded image data to break the image.

I know the character is not in the code im putting into the mail function.. and i just cant get rid of it happening.

if anyone has any ideas or have seen this before, i could really use some insight.

here is the code below

$boundary= "==Multipart_Boundary_x{$semi_rand}x";
$headers .= 'From: '.$fromEmail.' <'.$fromEmail.'>' . "\n";
$headers .= 'Bcc: '.$BccEmail.' <'.$BccEmail.'>' . "\n";
$headers .= 'Subject: Reservation' . "\n";
$headers .= 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-Type: multipart/alternative; boundary="'.$boundary.'"';

$message.="This is a multi-part message in MIME format". "\n";
$message.="--".$boundary. "\n";
$message.="Content-Type: text/plain; charset=\"iso-8859-1\"". "\n";
$message.="Content-Transfer-Encoding: 7bit"."\n"."\n";
$message.=$plainText. "\n";
$message.="--".$boundary. "\n";
$message.="Content-Type: text/html; charset=\"iso-8859-1\"". "\n";
$message.="Content-Transfer-Encoding: 7bit"."\n"."\n";
$message.=$htmlEmail. "\n";
$message.="--".$boundary."--\n";

mail($infoArray['email'],'Reservation',$message,$headers);

dreamcatcher

2:03 pm on Nov 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi gcarn,

Is it an encoding issue in your mail program? Have you tried other e-mail programs?

dc

gcarn

9:16 pm on Nov 12, 2008 (gmt 0)

10+ Year Member



I realized it had to do with characters without new lines, it seemd after 1000 characters without a line break, it placed it in.

it was interesting, that this happened when I sent mail from my clients host, but not from the same code on my host.. so it has something to do with the server's settings