$msg="";
if(isset($_POST['Email']) && strtolower($_POST['Code'])==strtolower($_COOKIE['confirmid'])){
$sendto="mark@hostingla.com";
$subject="Millers Automotive Contact Us";
$headers = "From: ".$_POST['Email']." \n";
$headers .= "BCC: ".$bcc." \n";
$headers .= "Reply-To: ".$_POST['Email']." \n";
$headers .= "X-Mailer: PHP 4.x";
$msg="";
foreach ($_POST as $key => $value){
if($key!="x" && $key!="y" && $key!="Code" && $key!="Submit" && $value!=""){
$msg.="\n".str_replace("_"," ",$key).": $value";
}
}
mail($sendto,$subject,$msg,$headers);
$msg="Your e-mail was sent.
We will reply quickly to your request.
If this matter is urgent please call us:
(714) 526-6629
We look forward to working with you.";
}
?>