I'm returning to my company html email for orders posted by customers.
I'm having a strange thing happening in one section, Various characters are dropped, note the word within the bold html coding:
<TR>
<TD colSpan=4>
<HR>
<BR><B>MAI G </B></TD></TR>
it should be MAILING (it's missing "LIN")
also today, note the text in the column:
<TR>
<TD colSpan=4>
<HR>
<BR><B>MAILING </B></TD></TR>
<TR>
<TD>ling Quantity: </TD>
the above should be Mailing Quantity (missing "Mai")
this is something that is seemingly random about 70% come through intact, and since it's server side it can't be the user's platform.
below is the section that outputs the above,
//mailing
$msg .= "<TR><TD colSpan=\"4\"><HR><BR><B>MAILING </B> </TD></TR><TR><TD>Mailing Quantity: </TD><TD><B>";
$msg .= $MailingQuantity;
$msg .= " </B></TD><TD>Mailing Method:</TD><TD><B>";
$msg .= $mailmethod;
$msg .= " </B></TD></TR><TR><TD>Mailing List By:</TD><TD><B>";
$msg .= $MailingList;
$msg .= " </B></TD><TD>Overage:</TD><TD><B>";
$msg .= $Overage;
$msg .= " </B></TD></TR><TR><TD>Shipping:</TD><TD><B>";
$msg .= $Shipping;
$msg .= " </B></TD><TD> </TD><TD> </TD></TR><TR><TD>Mailing Info:</TD><TD colSpan=\"3\"><B>";
$msg .= $mailinginfo;
$msg .= " </B></TD></TR>";
My headers are:
$to = "<joborder@company.com>";
$subject = "NML New Job Submission";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "Reply-to: <$email>\r\n";
$headers .= "From: <$email>\r\n";
$headers .= "X-Mailer: PHP / ".phpversion()."\r\n";
mail($to, $subject, $msg, $headers);
And I do some clean up with:
$edit = array(","," ", "'", "\\", "/", "\$", "&", "@", "+", ".");
$Namedir = str_replace ($edit, "", $LastName);
$edemail = array(" ", "'", "\\", "/", "\$", "&", "+");
$email = str_replace ($edemail, "", $email);
Is this a problem with my code or the server?