MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/imyrqtmy/public_html/deerparkhomestay/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/deerparkhomestay/mail.php
<?php
include ("Admin/Includes/db.php");



extract($_POST);


                                  $email=$_POST['email'];

                                  $html_message  =  '<h1>Room Enquriy Details.</h1>';

                                  $html_message  .=   '<p>Name : '. $_POST['name'] .'</p>';

                                  $html_message  .=   '<p>Phone Number :'.$_POST['phno'].'</p>';

                                  $html_message  .=   '<p>Arrival Date :'.$_POST['check_in_date'].'</p>';


                                  $html_message  .=   '<p>Departure Date :'.$_POST['check_out_date'].'</p>';

                                  $html_message  .=   '<p>Adults :'.$_POST['adults_capacity'].'</p>';

                                  $html_message  .=   '<p>Children :'.$_POST['max_child'].'</p>';

                                  

          

                $to ="shanudev515@gmail.com" ;

                 $subject = "Room Enquriy";

                 $header .= "MIME-Version: 1.0\r\n";

                 $header .= "Content-type: text/html\r\n";

                 

                 $retval = mail ($to,$subject,$html_message,$header);


                   if( $retval == true ) {

                         echo "<script>;

                            alert('Mail sent Succesfully');

								window.location.href='contact.php';

								</script>";

                    // echo "<p style='color:#E5097F; font-weight: 900; font-size: 28px'>" . "Our experts will get back to you soon" ."</p>";

                 }else {

                    echo "<script>;

                            alert('Mail Not sent');

								window.location.href='contact.php';

								</script>";

                 }







?>

MMCT - 2023