MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.118.193.28
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/alkareemtravel.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/alkareemtravel.com/sendmail.php
<?php
//get data from form  

// $sender_name = $_POST['sender_name'];
// $sender_email= $_POST['sender_email'];
// $sender_mobile = $_POST['sender_mobile'];
// $sender_nationality = $_POST['sender_nationality'];
// $sender_city = $_POST['sender_city'];
// $travel_date = $_POST['travel_date'];
// $adults = $_POST['adults'];
// $infants = $_POST['infants'];
// $childs = $_POST['childs'];
// $enquiry_type = $_POST['enquiry_type'];
// $sender_message = $_POST['sender_message'];
// $to = "at7838324498@gmail.com";
// $subject = "Mail From website";

// $txt ="Name = ". $sender_name . " \r\n  Email = " . $sender_email . " \r\n Message =" . $sender_message . " \r\n Phone=" .$sender_mobile . " \r\n Nationality=" .$sender_nationality . " \r\n City=".$sender_city . " \r\n  Travel Date = ".$travel_date . " \r\n Adults = " .$adults ." \r\n Infants =".$infants ." \r\n Message =".$sender_message ." \r\n Child =".$childs ." \r\n Enquiry type = ".$enquiry_type ;
// $headers = "From: noreply@Alkareentravel.com" . "\r\n" .
// "CC: somebodyelse@example.com";
// if($email!=NULL){
//     mail($to,$subject,$txt,$headers);
// }
// //redirect
// echo '<script>alert("Your Enquiry Submitted sucessfully, we will contact you soon.")
// window.location="quick-book.php";</script>

// </script>';

?>


<?php
//get data from form  

$name = $_POST['sender_name'];
$email= $_POST['sender_email'];
$message= $_POST['sender_message'];
$mobile= $_POST['sender_mobile'];
$nationality= $_POST['sender_nationality'];
$city= $_POST['sender_city'];
$date= $_POST['travel_date'];
$adults= $_POST['adults'];
$infants= $_POST['infants'];
$enquiry_type= $_POST['enquiry_type'];
$message= $_POST['sender_message'];
$to = "info@alkareemtravel.com"; //admin official mail
$subject = "Mail From quick booking form";
$txt ="Name = ". $name . "\r\n  Email = " . $email . "\r\n Message =" . $message. "\r\n Mobile Number =" . $mobile. " .\r\n Nationatilty =" .$nationality. " .\r\n City =" .$city. " .\r\n Date =" .$date. " .\r\n Adults =" .$adults. " .\r\n Infants =" .$infants. " .\r\n Enquiry Type =" .$enquiry_type. 
$headers = "From: noreply@Alkareentravel.com" . "\r\n" .
"CC: somebodyelse@example.com";
if($email!=NULL){
    mail($to,$subject,$txt,$headers);
}
//redirect
echo ("<script LANGUAGE='JavaScript'>
    window.alert('Succesfully sent');
    window.location.href='quick-book.php';
    </script>");
?>

MMCT - 2023