session_start(); if($_POST['Submit']=='Send Email' && $_SESSION[Captcha]==$_POST[Captcha]) { $to = 'design@aeyvi.com'; $subject = 'Website Contact Form Submission'; $message = " This is an automatically generated message from aeyvi.com There was a contact form submission. Below are the details. Name: $_POST[Name] Email: $_POST[Email] Message: $_POST[Message]"; $headers = 'From: webmaster@aeyvi.com' . "\r\n" . 'Reply-To: webmaster@aeyvi.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); header("Location: /contactTY.html"); exit; } ?>