PHP Form Mail

Hi everyone,

Haven’t been back here for a while…happy holidays!

So onto my small problem in PHP.

Being a newbie on php scripting I created a simple form mail script which is called from within Flash. Everything works fine…sends all info to the right recipients etc. Only trouble is when the email is received at the other end it doesn’t show who it is from. The server puts it’s own name in the “From” field in the email header. Because of my inexperience I’m not sure where or how to put it in. Below is the PHP script as it exists…THANKS FOR ANY HELP YOU CAN GIVE ME.

<?PHP

$to = "[email protected]";

$msg .= "Attention: Emerald Beach Resort On-Line Web Site Booking Department.

";
$msg .= "Name: " . $HTTP_POST_VARS[“Name”] . "
";
$msg .= "Arrival: " . $HTTP_POST_VARS[“Arrival”] . "
";
$msg .= "Departure: " . $HTTP_POST_VARS[“Departure”] . "
";
$msg .= "RoomType: " . $HTTP_POST_VARS[“RoomType”] . "
";
$msg .= "Adults: " . $HTTP_POST_VARS[“Adults”] . "
";
$msg .= "Children: " . $HTTP_POST_VARS[“Children”] . "
";
$msg .= "PhoneEmail: " . $HTTP_POST_VARS[“PhoneEmail”] . "
";
$msg .= "Rooms: " . $HTTP_POST_VARS[“Rooms”] . "
";
$msg .= "Address: " . $HTTP_POST_VARS[“Address”] . "
";
$msg .= "Comments: " . $HTTP_POST_VARS[“Comments”] . "
";
mail($to, $HTTP_POST_VARS[“Name”], $msg, "From Emerald Beach Resort Web Site Booking Department.
Reply-To: ". $HTTP_POST_VARS[“email”] . "
");

Print “status=Information sent.”;
?>