|
|
Tell a Friend about the Hales Bar!
if (@$_POST['Send']=="Send")
{
$name=$_POST['name'];
$email=$_POST['email'];
$subject = $name. " wants you to come for a drink!";
$message=$_POST['message'];
//This is the body section of the email and can be substituted for your message
// $message= "Hello, \n\n" .$name. " thinks you might like a drink at the Hales Bar, Harrogate! : \n\n http://www.halesbar.co.uk \n\n\n\n\n\n\n\n";
$headers = 'From: friends@halesbar.co.uk' . "\r\n" . 'Reply-To: admin@halesbar.co.uk' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($email, $subject, $message, $headers);
echo "Your email has been sent to: $email Thank you.";
}
?>
|