I send a mailform designed in Flash utilizing PHP script, and when the info arrives to my inbox, the following appears in the address/return field:
<TEXTFORMAT LEADING=\'2\'><P ALIGN=\'LEFT\'><FONT FACE=\'Arial\' SIZE=\'11\' COLOR=\'#333333\' LETTERSPACING=\'0\' KERNING=\'0\'>ivan</FONT></P></TEXTFORMAT> <<TEXTFORMAT LEADING=\'2\'><P ALIGN=\'LEFT\'><FONT FACE=\'Arial\' SIZE=\'11\' COLOR=\'#333333\' LETTERSPACING=\'0\' KERNING=\'0\'>ivan@foundationonestudios.com</FONT></P></TEXTFORMAT>>
Any ideas on how to fix it???
Thanks.
Ivan
PHP CODE
<?
/* subject */
$subject = "WEBSITE CONTACT FORM";
/* additional header pieces for errors, From cc's, bcc's, etc */
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">\r\n";
$headers .= "X-Sender: <" . $_POST["email"] .">\r\n";
$headers .= "X-Mailer: PHP\r\n"; // mailer
$headers .= "X-Priority: 1\r\n"; // Urgent message!
$headers .= "Return-Path: " . $_POST["name"] ." <" . $_POST["email"] .">\r\n";// Return path for errors
/* recipients */
$recipient = "bradley@allstarchefs.net";
$message = $_POST["comments"];
/* and now mail it */
mail($recipient, $subject, $message, $headers);
?>
<TEXTFORMAT LEADING=\'2\'><P ALIGN=\'LEFT\'><FONT FACE=\'Arial\' SIZE=\'11\' COLOR=\'#333333\' LETTERSPACING=\'0\' KERNING=\'0\'>ivan</FONT></P></TEXTFORMAT> <<TEXTFORMAT LEADING=\'2\'><P ALIGN=\'LEFT\'><FONT FACE=\'Arial\' SIZE=\'11\' COLOR=\'#333333\' LETTERSPACING=\'0\' KERNING=\'0\'>ivan@foundationonestudios.com</FONT></P></TEXTFORMAT>>
Any ideas on how to fix it???
Thanks.
Ivan
PHP CODE
<?
/* subject */
$subject = "WEBSITE CONTACT FORM";
/* additional header pieces for errors, From cc's, bcc's, etc */
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">\r\n";
$headers .= "X-Sender: <" . $_POST["email"] .">\r\n";
$headers .= "X-Mailer: PHP\r\n"; // mailer
$headers .= "X-Priority: 1\r\n"; // Urgent message!
$headers .= "Return-Path: " . $_POST["name"] ." <" . $_POST["email"] .">\r\n";// Return path for errors
/* recipients */
$recipient = "bradley@allstarchefs.net";
$message = $_POST["comments"];
/* and now mail it */
mail($recipient, $subject, $message, $headers);
?>