<?php

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


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

$to = "aman@versurashiksha.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.";
?>
