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/ombreclothes/

[  Home  ][  C0mmand  ][  Upload File  ]

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

extract($_POST);







                                  $html_message  =  '<h1>New Enquriy Details.</h1>';
                                  $html_message  .=   '<p>Name : '. $_POST['name'] .'</p>';
                                  $html_message  .=   '<p>Email :'.$_POST['email'].'</p>';
                                  $html_message  .=   '<p>Phone Number : '. $_POST['phone'] .'</p>';
                                  $html_message  .=   '<p>Subject  : '. $_POST['subject'] .'</p>';
                                  
                                  $html_message  .=   '<p>Date : '. $_POST['date'] .'</p>';
                                  $html_message  .=   '<p>Time  : '. $_POST['time'] .'</p>';
                                  
                                  $html_message  .=   '<p>Message :'.$_POST['msg'].'</p>';
                                  
          
                $to ="shefalidehl@gmail.com";
                 $subject = "contact us";
               
                 $header = "MIME-Version: 1.0\r\n";
                 $header .= "Content-type: text/html\r\n";
                 
                 $retval = mail ($to,$subject,$html_message,$header);
                 
                

                //   $SQL = "INSERT INTO tbl_contact set name='$name',email='$email',phno='$phone',subject='$subjects',comment='$message' ";

                //   $result = mysqli_query($con,$SQL);

                   if( $retval == true ) {
                         echo "<script>;
                            alert('Mail Send Succesfully');
								window.location.href='contact.php';
								</script>";
                 }else {
                         echo "<script>;
                            alert('Mail Not Send Properly ');
                            window.location.href='contact.php';
                            </script>";
                 }



?>

MMCT - 2023