';
print_r($_SESSION);
echo '';
echo '
';
print_r($_POST);
echo '';
// First we set up some parameters for the receiver
$receiver_name = 'Will-Britt_Books';
$receiver_email = 'info@will-brittbooks.com';
$mydomain = 'will-brittbooks.com';
// This is for the sender's name
if (! $_REQUEST["sender_name"]){
// The sender didn't give us their name
$send_from = 'Anonymous';
}else{
$send_from = $_REQUEST["sender_name"];
}
// This is for the sender's email
if ($_REQUEST["sender_email"] != ''){
$send_from_email = $_REQUEST["sender_email"];
}else{
// The sender didn't give us their email address
$send_from_email = 'noreply@' . $mydomain;
}
// This is for the message title or subject
if (! $_REQUEST["message_title"]){
// The sender didn't provide a title
$send_title = 'Order From ' . $mydomain;
}else{
$send_title = $_REQUEST["OrderForm"];
}
$send_body = '
';
//$send_body = $send_body.'';
//$send_body = $send_body.print_r($_POST);
//$send_body = $send_body.'
';
$send_body = $send_body.'
';
$send_body = $send_body.$_POST['T49']."\t";
$send_body = $send_body.$_POST['T52']."\t";
$send_body = $send_body."$".$_POST['T53']."\n";
$send_body = $send_body.$_POST['T2']."\t";
$send_body = $send_body.$_POST['T54']."\t";
$send_body = $send_body."$".$_POST['T55']."\n";
$send_body = $send_body.$_POST['T50'];
$send_body = $send_body.$_POST['T56'];
$send_body = $send_body."$".$_POST['T57']."\n";
$send_body = $send_body.$_POST['T51'];
$send_body = $send_body.$_POST['T58'];
$send_body = $send_body."$".$_POST['T59']."\n";
$send_body = $send_body.'Enclosed Please Find $'.$_POST['T36'].'for Books Ordered'."\n";
$send_body = $send_body.$_POST['T37'];
$send_body = $send_body.$_POST['T23'];
$send_body = $send_body.$_POST['T24'];
$send_body = $send_body.$_POST['T25'];
$send_body = $send_body.$_POST['T26'];
$send_body = $send_body.$_POST['T27'];
$send_body = $send_body.$_POST['T32'];
$send_body = $send_body.$_POST['T31'];
$send_body = $send_body.$_POST['T28'];
$send_body = $send_body.$_POST['T29'];
$send_body = $send_body.$_POST['T30'];
$send_body = $send_body.$_POST['Email'];
$send_body = $send_body.'';
$send_body = $send_body.'';
echo $send_body;
$addl_Headers = "From: " . $send_from_email . "\n" . "Reply-To: " . $send_from_email . "\n" . "X-Mailer: PHP/" . phpversion();
// Now we need to send the message
$deliver = mail($receiver_email, $send_title, $send_body, $headers);
// the PHP mail() function return true if the message was processed so we check for this below.
if ($deliver == TRUE){
header("location:thankyou.html");
exit;
}else{
"
We had a problem sending your request. Please e-mail your thoughts to us at =$receiver_email?>.
";
}
?>