<?php

$Name = $_GET['Name']; // required
$Email = $_GET['Email']; // required
$Mobile = $_GET['Mobile']; // required
$Message = $_GET['Message']; // not required


$email_body = "Dear Sir/Madam,\n\n".
"You have received new prospect details :\n".
"Name: $Name \n".
"Email: $Email \n".
"Name of the Society or Trust or Company: $Society\n".
"Brand Name of the School(s): $Brand\n".
"Location: $Location\n".
"Affiliation of School(s): $Affiliation\n".
"Number of Affiliated Schools/ Institutions/ Branches: $Number\n".
"Type of School: $Type\n".
"Constitution of the applicant school: $Constitution\n".
"No. of students: $Students\n".
"Grades Coverage: $Grades\n".
"Fee receipts expected in current financial year (2017-18): $Current\n".
"Fee Receipts in last financial year (2016-17): $Last\n".
"Fee Receipts in previous financial year (2017-18): $Previous\n".
"How old is the School - no. of years: $Old\n".
"Any existing loans (insert amount in INR lacs): $Existing\n".
"Who have you taken a loan from currently: $Who\n".
"Purpose: $Purpose\n".
"Amount Sought by Institution (Rs. Lacs):: $Institution\n".
"Tenure Sought (in Years):: $Tenure\n".


"Thank You, \n ".
"www.versurashiksha.com/\n".

$to = "srikanthash09@gmail.com";
$subject = "Request from Website enquiry@versurashiksha.com";
$from = "enquiry@versurashiksha.com";
$headers = "From:" . $from;
//$headers .= 'Cc: deviprasad@host2unlimited.com' . "\r\n";
mail($to,$subject,$email_body,$headers);

$email_body = "Dear $Name,\n\n".

"Thanks for contacting us, we will get back to you soon.\n".
"Email on this :- enquiry@versurashiksha.com \n \n \n \n \n \n ".


"Thank You, \n ".
"www.versurashiksha.com\n".

$to = $Email;
$subject = "Thanks for contacting www.versurashiksha.com :";
$from = "enquiry@versurashiksha.com";
$headers = "From:" . $from;
mail($to,$subject,$email_body,$headers);
echo "Mail Sent.";
?>
