<?php
$tomail = "hacksecinfotech@gmail.com";
$message = '<html>
<head>
<title>HTML email</title>
</head>
<body>
<p> This mail is  contact us form of hacksec infotech <br>
Name : '.$_POST['name'] .'<br>
Email : '.$_POST['email'].'<br>
Phone No : '.$_POST['phone_number'].'<br>
Message : '.$_POST['message'].'<br></p>
</body>
</html>';
$subject = $POST['msg_subject'];

$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: hacksecinfotech@gmail.com";
$result = mail($tomail,$subject,$message,$headers);
if ($result) {
	header('Location: index.html');
}

?>