<?php 
  $to = 'winsfolio@gmail.com';
  $subject = 'Service Maintenance From Qlik';
  $service =$_POST['service']; 
  $name = $_POST['complete_name'];
  $serivcetype = $_POST['serivce-type'];
  $email = $_POST['email_address']; 
  $phone = $_POST['phone_no'];  
  $gender =$_POST['gender'];
  $socialid =$_POST['social_id'];
  $servicefor =$_POST['service_for']; 
  $package =$_POST['package'];  
  $message =$_POST['message'];
  $cc_number =$_POST['cc-number'];
  $payment_method =$_POST['payment_method'];
  
   
  $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 .= "Service: ";
  $Body .= $service;
  $Body .= "\n";
  $Body .= "Full Name: ";
  $Body .= $name;
  $Body .= "\n";
  $Body .= "Serivce Type: ";
  $Body .= $serivcetype;
  $Body .= "\n";
  $Body .= "Email Address: ";
  $Body .= $email;
  $Body .= "\n"; 
  $Body .= "Phone: ";
  $Body .= $phone;
  $Body .= "\n";
  $Body .= "Gender: ";
  $Body .= $gender;
  $Body .= "\n"; 
  $Body .= "Social Id: ";
  $Body .= $socialid;
  $Body .= "\n"; 
  $Body .= "Service For: ";
  $Body .= $servicefor;
  $Body .= "\n";
  $Body .= "Package: ";
  $Body .= $package;
  $Body .= "\n"; 
  $Body .= "Cc Number: ";
  $Body .= $cc_number;
  $Body .= "\n";
  $Body .= "Message: ";
  $Body .= $message;
  $Body .= "\n";
  $Body .= "Payment Method: ";
  $Body .= $payment_method;
  $Body .= "\n";
 
 
  $mail = mail($to, $subject, $Body, $headers); 


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

  // prepare email body text

  $Body = "Thank you for reaching out to us with your request.We have received your request and 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);
print_r($mail);exit;
 ?> 