session_start();
if ($_REQUEST["recipient"]<>'') {
if ($_POST["vercode"] != $_SESSION["vercode"] OR $_SESSION["vercode"]=='') {
$error = 'Incorrect verification code.
';
} else {
$ToEmail = $_REQUEST["recipient"];
$EmailSubject = $_REQUEST["subject"];
$mailheader = "From: ".$_POST["email"]."\r\n";
$mailheader .= "Reply-To: ".$_POST["email"]."\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
if ($_REQUEST["conveyingcom"]) $interested .= "conveyingcom";
if ($_REQUEST["BCBookrights"]) $interested .= "BCBookrights";
if ($_REQUEST["BCMarketingplan"]) $interested .= "BCMarketingplan";
$MESSAGE_BODY = "Interested in: ".$interested."
";
$MESSAGE_BODY .= "Name: ".$_POST["name"]."
";
$MESSAGE_BODY .= "Phone: ".$_POST["phone"]."
";
$MESSAGE_BODY .= "Fax: ".$_POST["faxphone"]."
";
$MESSAGE_BODY .= "Email: ".$_POST["email"]."
";
$MESSAGE_BODY .= "Company: ".$_POST["company"]."
";
$MESSAGE_BODY .= "Address: ".$_POST["address"]."
";
$MESSAGE_BODY .= "City: ".$_POST["city"]."
";
$MESSAGE_BODY .= "State: ".$_POST["state"]."
";
$MESSAGE_BODY .= "Zip: ".$_POST["zip"]."
";
$MESSAGE_BODY .= "Country: ".$_POST["country"]."
";
$MESSAGE_BODY .= "Comment: ".nl2br($_POST["comments"])."
";
mail($ToEmail, $_REQUEST["subject"], $MESSAGE_BODY, $mailheader) or die ("Failure");
header("Location: ".$_REQUEST["redirect"]);
};
};
?>
|
|
|