Hi guys, really stuck now, i have done this on a site before and it worked, but i cannot for the life of me get this to work, all i get is a flash on the screen then nothing any help would be gratefully received :’(
[php]
<?php $email_to = "[email protected]"; $name = $_POST["name"]; $email_from = $_POST["email"]; $message = $_POST["message"]; $email_subject = "Feedback from website"; $headers = "From: " . $email_from . "\n"; $headers .= "Reply-To: " . $email_from . "\n"; $message = "Name: ". $name . "\r\nMessage: " . $message; ini_set("sendmail_from", $email_from); $sent = mail($email_to, $email_subject, $message, $headers, "-f" .$email_from); if ($sent) { header("Location: http://www.hazee-daze.meximas.com/thankyou.html"); } else { echo "There has been an error sending your message. Please try later."; } ?>[/php]