<?php
if ($_POST) {
$security = $_POST['security'];
if ( $security == "SANTIAGO" ) {
$username = $_POST['username'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$to = "youremail@ut.edu";
//$from = $email;
$from = $_POST['email'];
$headers = "From: " . $username . "<" . $email . ">\r\n";
$headers .= "Reply-To: " . $email;
mail($to,$subject,$message,$headers);
echo("
<br /><br />
Thank you, " . $username . " your message with the subject <b> " . $subject . "</b>
and the content <i> " . $message . " </i> has been sent
");
} else {
echo(' YOU SUBMITTED A WRONG SECURITY CODE !!!!!! ');
}
} else {
echo('PLEASE USE THE <a href="email.html">EMAIL FORM</a> TO CONTACT ME');
}
?>