<?php 
  $to = 'winsfolio@gmail.com' . "\r\n";
  $subject = 'Service Maintenance From Qlik';
  $op1 =$_POST['op1']; 
  $name = $_POST['name'];    
  $mail =$_POST['mail']; 
  $location = $_POST['location']; 

   
  $headers = "Reply-To: $name <$email>\r\n"; 
  $headers .= "Return-Path: The Sender <$email>\r\n"; 
  $headers .= "From: $email" ."\r\n" .
  $headers .= "Qlik Service Maintenance\r\n";
  $headers .= "MIME-Version: 1.0\r\n";
  $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
  $headers .= "X-Priority: 3\r\n";
  $headers .= "X-Mailer: PHP". phpversion() ."\r\n" ;

  // prepare email body text
  $Body = "";
  $Body .= "*****Service Maintenance From Qlik*****";
  $Body .= "\n";
  $Body .= "op1: ";
  $Body .= $Op1;
  $Body .= "\n";
  $Body .= "Name: ";
  $Body .= $name;
  $Body .= "\n"; 
  $Body .= "mail: ";
  $Body .= $mail;
  $Body .= "\n";
  $Body .= "location: ";
  $Body .= $location;
  $Body .= "\n"; 
    

  $mail = mail($to, $subject, $Body, $headers); 


  $subject = 'Thank You for Your Request on Qlik';
  $name = 'submitter';
  $to = $_POST['email_address']; 

  // prepare email body text

  $Body = "Thank you for reaching out to us with your request.We have received your request for and are currently reviewing it. If you have any additional information or specific requirements, please feel free to share them with us. We will keep you updated and ensure a prompt response.
  Thank you for choosing Quiik";


  $headers = "Reply-To: Winsfolio <winsfolio@gnmail.com>\r\n"; 
  $headers .= "Return-Path: Quiik <winsfolio@gnmail.com>>\r\n"; 
  $headers .= "From: winsfolio@gnmail.com>" ."\r\n" .
  $headers .= "Qlik Service Maintenance\r\n";
  $headers .= "MIME-Version: 1.0\r\n";
  $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
  $headers .= "X-Priority: 3\r\n";
  $headers .= "X-Mailer: PHP". phpversion() ."\r\n" ;
  $mail = mail($to, $subject, $Body, $headers);

 ?> 