<?php 
if(isset($_REQUEST['submit'])){

$cvname = $_REQUEST['cvname'];
$cvemail = $_REQUEST['cvemail'];
$cvphone = $_REQUEST['cvphone'];
$cveducation = $_REQUEST['cveducation'];
$cvskills = $_REQUEST['cvskills'];
$cvpositionapplied = $_REQUEST['cvpositionapplied'];
$cvexperience = $_REQUEST['cvexperience'];
$cvcurrent = $_REQUEST['cvcurrent'];
$cvsalary = $_REQUEST['cvsalary'];

$cvcontent = $_REQUEST['cvcontent'];


	
	


$to = 'info@strapsindia.com';
$subject = 'Straps India Recruitment Form';
$from = $cvemail ;
// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 

// Create email headers
$headers .= 'From: '.$cvemail."\r\n".
    'Reply-To: '.$cvemail."\r\n" .
    'X-Mailer: PHP/' . phpversion();
	

// Compose a simple HTML email message
$message = '<html><body>';
$message .= '<h1 style="color:#f40;">Straps India Recruitment Form</h1>';
$message .= '<p style="color:#080;font-size:18px;">Name : '.$cvname.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Email : '.$cvemail.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Contact : '.$cvphone.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Education Qualifications : '.$cveducation.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Key Skills : '.$cvskills.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Position Applied For : '.$cvpositionapplied.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Total Experience : '.$cvexperience.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Current Employer : '.$cvcurrent.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Expected Salary : '.$cvsalary.'</p>';

$message .= '<p style="color:#080;font-size:18px;">Comments : '.$cvcontent.'</p>';

$message .= '</body></html>';
// Sending email

	if(mail($to, $subject, $message, $headers)){

		//echo 'Your mail has been sent successfully.';
		header('Location: index.html#!/page_CAREERS');

	} else{

		echo 'Unable to send email. Please try again. please <a href="index.html#!/page_CAREERS"> click </a> to send again.';

	}
}

?>