hi, i am first time try to use flash send the email by php, current now all functions work perfectly, no error during send and receive, but only the sender name, it looks like a little wrong format when i received.
in the email when i read, the sender is shown like this
From <P ALIGN=\"LEFT\"><FONT FACE=\"Zurich Cn BT\" SIZE=\"11\" COLOR=\"#3A4812\" LETTERSPACING=\"0\" KERNING=\"0\">test</FONT></P>
when i open the sender contact in microsoft outlook, the Displays name tag is shown XXX@XXX.com, and the E-mail address is show P ALIGN=\"LEFT\"FONT FACE=\"Zurich Cn BT\" SIZE=\"11\" COLOR=\"#3A4812\" LETTERSPACING=\"0\" KERNING=\"0\"/FONT/P
how can i fix it?, below is is the contact.php code i use.
<?
Error_Reporting(E_ALL & ~E_NOTICE);
while ($request = current($REQUEST)) {
if (key($REQUEST)!='recipient') {
$pre_array=split ("&777&", $request);
$post_vars[key($REQUEST)][0]=$pre_array[0];
$post_vars[key($REQUEST)][1]=$pre_array[1];
}
next($_REQUEST);
}
reset($post_vars);
$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {
$message.="<strong>".$mess[1]."</strong> This message from [url]www.amsmalaysia.com[/url]. ".$mess[0]."<br>";
}
next($post_vars);
}
mail($_REQUEST['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!
Thank you for contacting us, we will reply
to your inquiry as soon as possible!");
?>
<script>
resizeTo(300, 300);
</script>