'.$Address1;
}
if(isset($_REQUEST['TR_Address_Line_3']) && $_REQUEST['TR_Address_Line_3'] != '') {
$Address1 = stripslashes(trim($_REQUEST['TR_Address_Line_3']));
$Address = $Address.'
'.$Address1;
}
if(isset($_REQUEST['TR_City_Town']) && $_REQUEST['TR_City_Town'] != '') {
$City = stripslashes(trim($_REQUEST['TR_City_Town']));
}
if(isset($_REQUEST['TR_Postcode']) && $_REQUEST['TR_Postcode'] != '') {
$Postcode = stripslashes(trim($_REQUEST['TR_Postcode']));
}
if(isset($_REQUEST['TR_Country']) && $_REQUEST['TR_Country'] != '') {
$Country = stripslashes(trim($_REQUEST['TR_Country']));
}
if(isset($_REQUEST['PHR_Telephone']) && $_REQUEST['PHR_Telephone'] != '') {
$Telephone = stripslashes(trim($_REQUEST['PHR_Telephone']));
}
if(isset($_REQUEST['PHN_Mobile']) && $_REQUEST['PHN_Mobile'] != '') {
$Mobile = stripslashes(trim($_REQUEST['PHN_Mobile']));
}
if(isset($_REQUEST['TREF_Email']) && $_REQUEST['TREF_Email'] != '') {
$Email = stripslashes(trim($_REQUEST['TREF_Email']));
}
if(isset($_REQUEST['TR_Month_Booking_Date_From']) && $_REQUEST['TR_Month_Booking_Date_From'] != '') {
$Month = stripslashes(trim($_REQUEST['TR_Month_Booking_Date_From']));
}
if(isset($_REQUEST['TR_Day_Booking_Date_From']) && $_REQUEST['TR_Day_Booking_Date_From'] != '') {
$Day = stripslashes(trim($_REQUEST['TR_Day_Booking_Date_From']));
}
if(isset($_REQUEST['TR_Year_Booking_Date_From']) && $_REQUEST['TR_Year_Booking_Date_From'] != '') {
$Year = stripslashes(trim($_REQUEST['TR_Year_Booking_Date_From']));
}
if(isset($_REQUEST['IR_Number_of_Days ']) && $_REQUEST['IR_Number_of_Days '] != '') {
$NumDays = stripslashes(trim($_REQUEST['IR_Number_of_Days ']));
}
if(isset($_REQUEST['TN_Other_Requirements']) && $_REQUEST['TN_Other_Requirements'] != '') {
$Requirements = stripslashes(trim($_REQUEST['TN_Other_Requirements']));
}
$to = "bookings@durhamcityapartment.co.uk";
// $to = "enquiries@durhamcityapartment.co.uk";
// $to = "prakash@oliveinternet.com";
$fromEmail = $Email;
$subject = "Booking Request ";
//$msg = " ";
$msg = "
| Hello Admin, |
|
| A visitor is searching for a Apartment . Following are the details: - |
| Family Name: ".$FamilyName." |
| Other Name : ".$OtherName." |
| Address: ".$Address." |
| City/Town: ".$City." |
| City/Town: ".$Postcode." |
| Country: ".$Country." |
| Telephone: ".$Telephone." |
| Mobile: ".$Mobile." |
| Email: ".$Email." |
| Booking Date From: ".$Day."-".$Month."-".$Year." |
| Number of Days: ".$NumDays." |
| Other Requirement: ".$Requirements." |
| |
Regards, Durham Trade Postmaster |
|
";
if(!empty($Email)) {
include_once("mimemail.php");
//mail($to, $subject, $msg, $headers);
$headers = '';
$objMail = new mimemail();
$objMail->set_To($to);
$objMail->set_From($fromEmail);
$objMail->set_Subject($subject);
$objMail->set_Body($msg);
$objMail->set_Headers($headers);
$objMail->send();
unset($objMail);
header("Location: thanks.html");
}
}
?>