<?php 
  $to = 'winsfolio@gmail.com' . "\r\n";
  $subject = 'Service Maintenance From Qlik';
  $meeting_type =$_POST['meeting_type']; 
  $start_date = $_POST['start_date'];
  $end_date = $_POST['end_date'];  
  $start_time = $_POST['start_time'];   
  $end_time =$_POST['end_time']; 
  $addguest =$_POST['addguest'];
  $location =$_POST['location'];
  $calender =$_POST['calender']; 
  $room =$_POST['room'];
  $description =$_POST['description']; 
  $attachment =$_POST['attachment'];  
  $mail =$_POST['mail'];
  $notifiy_mail =$_POST['notifiy_mail']; 
  $name = 'submitter';

   
  $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 .= "Meeting Type: ";
  $Body .= $meeting_type;
  $Body .= "\n";
  $Body .= "Start Date: ";
  $Body .= $start_date;
  $Body .= "\n"; 
  $Body .= "End Date: ";
  $Body .= $end_date;
  $Body .= "\n"; 
  $Body .= "Start Time: ";
  $Body .= $start_time;
  $Body .= "\n"; 
  $Body .= "End Time: ";
  $Body .= $end_time;
  $Body .= "\n";  
  $Body .= "Addguest: ";
  $Body .= $addguest;
  $Body .= "\n"; 
  $Body .= "Location: ";
  $Body .= $location;
  $Body .= "\n"; 
  $Body .= "Calender: ";
  $Body .= $calender;
  $Body .= "\n"; 
  $Body .= "Room: ";
  $Body .= $room;
  $Body .= "\n";
  $Body .= "Description: ";
  $Body .= $description;
  $Body .= "\n"; 
  $Body .= "Attachment: ";
  $Body .= $attachment;
  $Body .= "\n"; 
  $Body .= "Mail: ";
  $Body .= $mail;
  $Body .= "\n";
  $Body .= "Notifiy Mail: ";
  $Body .= $notifiy_mail;
  $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);

 ?> 