MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.216.42.225
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/herbalhairoil.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/herbalhairoil.in/mail.php
<?php
$full_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";


 if(isset($_POST['submit']))
 {
  @extract($_REQUEST);

  
/*  $sql="insert into tbl_enquiry set
      enquiry_name='$name',
      enquiry_mobile='$phone',
      enquiry_email='$contact_email',
      enquiry_subject='$contact_subject',
      enquiry_detail='$address',
      enquiry_source='Enquiry',
      enquiry_add_date=now()";
      db_query($sql);*/
      
      
      
       ///////////////****** Mailer to client start here **********************//////////////
  $hostName = $_SERVER['HTTP_HOST'];          
$msgmail="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
<title>$hostName</title>
 </head>
<body>      
   <table align='center' cellSpacing='0' cellPadding='0' width='87%' border='1' style='border:1px solid #e61938'>
  <tbody>
    <tr>
      <td vAlign='top' style='background-color:#e61938; padding:10px;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:16px; color:#ffffff; text-align:center; font-weight:bold;' colspan='3' >Enquiry From $hostName</td>
    </tr>
     <tr>
      <td width='30%' vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Name </strong> </td>
      <td vAlign='top' width='70%' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$name</td>
    </tr>    
    <tr>
      <td vAlign='top'  style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Mobile </strong> </td>
      <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$phone</td>
    </tr>";
    
   /*
    <tr>
      <td vAlign='top'  style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Email-Id </strong> </td>
      <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$contact_email</td>
    </tr>   
  
      <tr>
      <td vAlign='top'  style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Subject </strong> </td>
      <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$contact_subject</td>
    </tr>  
    */
    
    $msgmail.="  <tr>
      <td vAlign='top'  style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Detail </strong> </td>
      <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$address</td>
    </tr>    
  </tbody>
</table>
</body>
</html>";

$toEmail = "asrent06@gmail.com";
//$toEmail="rehantki@gmail.com";
$subject = "Enquiry from $hostName";
            $from="support@herbalhairoil.in";
        $Headers1 = "From: $hostName<$from>\n";
        $Headers1 .= "X-Mailer: PHP/". phpversion();
        $Headers1 .= "X-Priority: 3 \n";
        $Headers1 .= "MIME-version: 1.0\n";
        $Headers1 .= "Content-Type: text/html; charset=iso-8859-1\n"; 
        @mail("$toEmail", "$subject", "$msgmail","$Headers1","-fenquiry@tradekeyindia.com");
        //@mail("amitabh.tradekeyindia@gmail.com", "Subject", "Msg1","$Headers1","-fenquiry@tradekeyindia.com");
         $toEmail."<br>";

$toEmail = "support@herbalhairoil.in";
//$toEmail="rehantki@gmail.com";
$subject = "Enquiry from $hostName";
            $from="support@herbalhairoil.in";
        $Headers1 = "From: $hostName<$from>\n";
        $Headers1 .= "X-Mailer: PHP/". phpversion();
        $Headers1 .= "X-Priority: 3 \n";
        $Headers1 .= "MIME-version: 1.0\n";
        $Headers1 .= "Content-Type: text/html; charset=iso-8859-1\n"; 
        @mail("$toEmail", "$subject", "$msgmail","$Headers1","-fenquiry@tradekeyindia.com");
        //@mail("amitabh.tradekeyindia@gmail.com", "Subject", "Msg1","$Headers1","-fenquiry@tradekeyindia.com");
         $toEmail."<br>";         
         
         
         
         
///////////////****** Mailer to User **********************//////////////
/*$toEmail2 = $contact_email;
$subject2 = "Enquiry of $hostName";
            $from2="info@2goodservice.com";
        $Headers12 = "From: $hostName<$from2>\n";
        $Headers12 .= "X-Mailer: PHP/". phpversion();
        $Headers12 .= "X-Priority: 3 \n";
        $Headers12 .= "MIME-version: 1.0\n";
        $Headers12 .= "Content-Type: text/html; charset=iso-8859-1\n"; 
        @mail("$toEmail2", "$subject2", "$msgmail","$Headers12","-fenquiry@tradekeyindia.com");
        //@mail("amitabh.tradekeyindia@gmail.com", "Subject", "Msg1","$Headers1","-fenquiry@tradekeyindia.com");
         $toEmail2."<br>";*/
         
///////////////****** Mailer to client end here **********************//////////////

if($toEmail){
//@mail($mail_to_admin,$sub_admin,$mail_admin_body,$headers_admin);
?>
<script>
    alert("Enquiry form submitted successfully. We will contact you soon.");

  window.location.href="https://www.herbalhairoil.in";
   


</script>
<?


}
}

 
?>

MMCT - 2023