// Check, if submitted.
if($Submit){
/*
Send email to "webmaster@localhost".
If you want to send more than 1, use "," between the second, third,...
Ex. webmaster@localhost, me@domain.com, you@domain.com, ...
*/
$to="info@thailandtravelplanner.com";
$subject="แบบฟอร์มขอใบเสนอราคาในการจองรถ";
// Get time from server.
$time=date("d/m/Y");
$mail_from="From:$email \n";
$mail_from .="Content-Type: text/html; charset=utf-8 \n";
$message="
Contact on : $time
ชื่อ - นามสกุล : $FirstName
E-mail : $Email
โทรศัพท์ :$Tel
แฟกซ์ :$Fax
มือถือ :$Mobile
บริษัท / หน่วยงาน :$Company
จังหวัด / สถานที่รับ : $inWhere
จังหวัด / สถานที่ส่ง : $outWhere
ประเภทของรถ : $TypeBus
จำนวนรถ :$NumberBus
วันเดินทางไป :$inDay $inMonth $inYear
วันเดินทางกลับ :$outDay $outMonth $outYear
ต้องการข้อมูลเพิ่มเติม :$Other
รู้จัก www.blueminertravel.com จาก... :$KnowFrom";
// Send email.
mail($to,$subject,$message,$mail_from);
echo "Thank You! Your contact information has been sent";
}
?>