<?php
 		
$sendername=$_POST['name'];
$emailaddress=$_POST['email'];
$telephone=$_POST['contact'];
$message=$_POST['message'];
 

	$send_msg= "Name : ".$sendername."<br>Email : ".$emailaddress."<br>Phone No: ".$telephone."<br> Message : ".$message." ";
	
	
	$email_from = 'exportyash2gmail.com';
	$email_to = 'exportyash2gmail.com';//replace with your email
	$subject = "Yash-Photography-mail:";			
	$headers = "From: Yash-Photography-mail <customers@homyservices.com>\r\n";
	$headers .= "CC:yourmail@gmail.com\r\n";
	$headers .= "Reply-To: \r\n";
	$headers .= "MIME-Version: 1.0\r\n";
	$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

	$send_to_admin = mail($email_to, $subject, $send_msg, $headers);
	echo "<script>alert('Mail Send Successfully');window.location='contact.php';</script>";
?>
