Hi, I am using the following code to send an email from a Feedback.htm form
- when it is opened in the browser it then takes me to the Thanks.htm page as expected, but I never receive an email. There is no error message from the mail.php code below when it is ran
Can anyone suggest where the error may be ?
thanks
Nic
<?php
$address = "myaddress@hotmail.co.uk";
$firstname = $POST['firstname'];
$secondname = $POST['secondname'];
$email = $POST['email'];
$comments = $POST['comments'];
$subject = "Feedback left by ".$name.".";
$message = "The following comment was left to you by ".$firstname." ".$secondname."(".$email.") on ".date("d/m/Y").".
".$comments.".";
$headers = "From: ".$email."";
@mail($address,$subject,$message,$headers);
header("Location:Thanks.htm");
?>