Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mailform Problem

Status
Not open for further replies.

Ivan1

Programmer
Jun 18, 2001
113
US
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);

?>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top