<?php
if (isset($_POST['submit'])) {
	$name=$_POST['name'];
	$email=$_POST['email'];
    $phone=$_POST['contact'];
	$location=$_POST['location'];
	$company=$_POST['company'];
	$message=$_POST['message'];
// 	$product=$_POST['productname'];
	$word = "http"; 
 

	$headers='From:'.$email."\n".'Reply-To:'.$email."\n".	
    'X-Mailer: PHP/' . phpversion()."\n".'content-type :text/html;charset=UTF-8';
	$message='<br>Name: '.$name.'<br>Email: '.$email.'<br>Phone: '.$phone.'<br>Location: '.$location.'<br>Company: '.$company.'<br>Message: '.$message. '<br>';
	if(mail('namrata@brandbucketsofttech.com','enquiry mail from brochure page',$message,$headers)){
	    
	  
	   // echo "123";
		header('Location:index.html?Message=sent');
	}
else{
    //   echo "123456";
	header('Location:index.html?Message=error');
}
	
}

?>
