Contact Us
$redirect = "thankyou_page.html";
ini_set("sendmail_from", "masud.khan@engage-technologies.co.uk");
function SendMail($to,$from,$subject,$body)
{
$header = "From: ".$from."\r\n";
$header = $header."Content-Type: text/html; charset=\"iso-8859-1\"\r\n" ;
if(mail($to,$subject,$body,$header))
{
}
else
{
echo("Error: Couldn't send email");
}
}
if($_POST)
{
$to = "masud.khan@engage-technologies.co.uk";
$name = $_POST['name'];
$email = $_POST['email'];
$tele = $_POST['phone'];
$subject = "Address Captured";
$msg = $_POST['message'];
$body = "Name : $name Email : $email Phone : $tele Message : ".$msg;
SendMail($to,$name."<".$email.">",$subject,$body);
header("Location: $redirect");
}
?>
Email Details
|