You must enter a message. "; } else if ($_POST['email'] == "") { echo " You must enter an e-mail address "; } else { /*SEND EMAIL recipients */ /* subject */ $subject = "Message from CFT Contact Form"; /* message */ $message = $_POST['message']; /* To send HTML mail, you can set the Content-type header. */ $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; /* additional headers */ $headers .= "From: CFT WEB CONTACT <".$_POST['email'].">\r\n"; /* and now mail it */ mail($contact, $subject, $message, $headers); echo "Thank you for sending your message. You should receive a reply shortly. "; } }//end if send ?> Contact the Center for TeachingThank you for your interest in the Center for Teaching at Vanderbilt University. We've created this form to help you get in touch with the right people. Please choose your contact from the list, enter your e-mail address, and type your message below.You'll notice that we no longer publish e-mail addresses on our site. We have moved to this form to help cut down on spam. If you need to look up anyone's e-mail at Vanderbilt, please visit the Vanderbilt People Finder. HOME | ABOUT CFT | PROGRAMS | SERVICES | RESOURCES
|