".$eol;
$headers .= "Reply-To: ".$_POST['Email']." <".$_POST['Email'].">".$eol;
$headers .= "Return-Path: ".$_POST['Email']." <".$_POST['Email'].">".$eol; // these two to set reply address
$headers .= "Message-ID: <".time()."-".$_POST['Email'].">".$eol;
$headers .= "X-Mailer: PHP v".phpversion().$eol; // These two to help avoid spam-filters
$msg = "";
foreach($_POST as $key=>$val) {
if($key != "sendForm") {
$msg .= str_replace("_","",$key) . " : " . $val . "\n";
//echo $key . " : " . $val . "
";
}
}
if(mail("natalie.hibbert@co-operativetravel.co.uk" , "Web query", $msg, $headers)) {
header("Location: iframesfc.html?p=s");
exit();
} else {
header("Location: iframesfc.html?p=f");
exit();
}
}
?>