Can someone see anything wrong in the below, driving me bloody nuts!
Any help much appreciated.
Code:
<?php
//send email
$headers .= "From: $email<>\r\n";
//message body
$recipient = "enquiries@websitedesigned.co.uk";
$message .= "I would like to receive the Smithfield E-letter" . "\n\n";
$message .= "Email: " . $email . "\n";
//build email
$body = $message;
//sends email
$subject = "E-Letter Request";
mail($recipient, $subject, $body, $headers) or die("couldn't send the email");
header("Location: http://www.smithfieldwine.com/acatalog/thank-you.html");
?>
Comment