if ($_POST['sent'] == "yes") {
$name = $_POST['name'];
$contact = $_POST['contact'];
$website = $_POST['website'];
$email = $_POST['email'];
$enquiry = $_POST['enquiry'];
$product = $_POST['product'];
$other_details = $_POST['other_details'];
$mail = $_POST['mail'];
$url = $_POST['url'];
if ($mail)
{
$priority = 0;
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
if ($priority){
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
}
$headers .= "X-Mailer: php\n";
$headers .= "From: \Webmaniac Graphics \n";
$message2 = "You have requested to receive the emails sent out by the Online Enquiry Form feature at your site.
";
$message2 .= "Clients Name: " . $name . " Contact Nr: " . $contact . " Email: " . $email . " Product: " . $product ." Website Details if applicable: " . $website." Enquiry: " . $enquiry. " Other Details: " . $other_details. " " ;
mail("$mail", "Online Enquiry",$message2,$headers);
}
}
?>
|
|
|