if ($_POST["email"]<>'') {
$ToEmail = '[email protected]';
$EmailSubject = 'ProtectingProperty.com Appointment Form Submitted';
$mailheader = "From: ".$_POST["email"]."\r\n";
$mailheader .= "Reply-To: ".$_POST["email"]."\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
$MESSAGE_BODY .= "Name: ".$_POST["name"]."
";
$MESSAGE_BODY .= "Title: ".$_POST["title"]."
";
$MESSAGE_BODY .= "Company: ".$_POST["company"]."
";
$MESSAGE_BODY .= "Email: ".$_POST["email"]."
";
$MESSAGE_BODY .= "Phone: ".$_POST["phone1"]."-".$_POST["phone2"]."-".$_POST["phone3"]." "."Ext".$_POST["phone4"]."
";
$MESSAGE_BODY .= "Preferred Appointment: ".$_POST["apptmonth"]." ".$_POST["apptday"].", ".$_POST["apptyear"]."
";
$MESSAGE_BODY .= "Preferred Appointment Time: ".$_POST["appttime"]."
";
$MESSAGE_BODY .= "Address: ".$_POST["address1"]."
";
$MESSAGE_BODY .= "Address2: ".$_POST["address2"]."
";
$MESSAGE_BODY .= "City: ".$_POST["city"]."
";
$MESSAGE_BODY .= "State: ".$_POST["state"]."
";
$MESSAGE_BODY .= "Zip Code: ".$_POST["zip"]."
";
$MESSAGE_BODY .= "Location Notes: ".nl2br($_POST["location"])."
";
mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure");
?>
Appointment Scheduling Request Complete |
| Your appointment scheduling form was sent. You will recieve a response via email within 24 hours. Thank you |