<?php 
if(isset($_REQUEST['submit'])){
$user_name = $_REQUEST['name'];
$user_email = $_REQUEST['email'];
$user_contact = $_REQUEST['phone'];
$user_message = $_REQUEST['content'];

$to = 'info@strapsindia.com';
$subject = 'Straps India Inquiry Form';
$from = $user_email ;
// 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: '.$user_email."\r\n".
    'Reply-To: '.$user_email."\r\n" .
    'X-Mailer: PHP/' . phpversion();

 

// Compose a simple HTML email message
$message = '<html><body>';
$message .= '<h1 style="color:#f40;">Straps India Inquiry Form</h1>';
$message .= '<p style="color:#080;font-size:18px;">Name : '.$user_name.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Email : '.$user_email.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Contact : '.$user_contact.'</p>';
$message .= '<p style="color:#080;font-size:18px;">Message : '.$user_message.'</p>';

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

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

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

	} else{

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

	}
}

?>