<?php
$mess="";
if(isset($_POST['submit']))
 {
   //print_r($_POST);
   //die();
   
   $name = $_POST['name'];
   $mail = $_POST['mail'];
      $mob = $_POST['mob'];
   $query = $_POST['query'];
   
   $to = "support@corepixel.net"; //info@onecoretechnology.com
   $subject = "Contact Us Information Enquiry";
   $message =  "Name:".$name."\r\n<br>";
   $message .= "Email:".$mail."\r\n<br>";
      $message .= "Mobile No:".$mob."\r\n<br>";
   $message .= "Message:".$query."\r\n<br>";
   $headers  = "From: corepixel.net Enquiry <support@corepixel.net>\r\n";
   $headers .= "Cc:gauravonecore@gmail.com \r\n";
   $headers .= "MIME-Version: 1.0"."\r\n";
   $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
   $headers .= "X-Mailer:PHP".phpversion()."\r\n";
   
  $retrival = mail($to,$subject,$message,$headers);
   
   if($retrival)
     {
     $mess = "success";

   $replyto = $mail; //info@onecoretechnology.com
   $replysubject = "Thank You - corepixel.net";
    $replymessage =  " <h3>Dear ".$name.", \r\n<br></h3>";
   
   $replymessage .= "<h4>Thank you very much for your enquiry. Our customer relations manager will get in touch with you shortly.\r\n<br></h4>";
   $replymessage .= "<h4>Thanks and Regards<br>Team Digital Consultants<b><br> <mark>Core Pixel</mark></b></h4><h4>Phone: USA 1-800-495-1878<br>
       INDIA +91 956-089-7694<br>
       Email:<a href='mailto:support@corepixel.net'>support@corepixel.net</a><br>
Website: <a href='corepixel.net'>Corepixel.net</a><br>
Address: 30 N Gould St, STE R Sheridan, WY 82801 USA</h4><hr>";

   $replyheaders  = "From: corepixel.net Enquiry <support@corepixel.net>\r\n";
   //$replyheaders .= "Cc: bhavnahr@onecoretechnology.com \r\n";
   $replyheaders .= "MIME-Version: 1.0"."\r\n";
   $replyheaders .= "Content-type: text/html; charset=iso-8859-1\r\n";
   $replyheaders .= "X-Mailer:PHP".phpversion()."\r\n";
   $replyretrival = mail($replyto,$replysubject,$replymessage,$replyheaders);
   
   }
    else
   {
    $mess = "Failed";
   }  
  
 }  

?>






<!-- Event snippet for Contact Form Submission conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url) {
  var callback = function () {
    if (typeof(url) != 'undefined') {
      window.location = url;
    }
  };
  gtag('event', 'conversion', {
      'send_to': 'AW-10986716989/SpMYCLbz9s0ZEL3-7_Yo',
      'event_callback': callback
  });
  return false;
}
</script>


<!-- Event snippet for Contact Form Submission conversion page -->
<script>
  gtag('event', 'conversion', {
      'send_to': 'AW-10986716989/SpMYCLbz9s0ZEL3-7_Yo',
      'value': 1.0
  });
</script>




<?php
include 'header.php';
?>

<img src="images/thankyou.jpg" class="responsive">

<style>
    .responsive {
  width: 100%;
  height: auto;
}
</style>

<?php
include 'footer.php';
?>