| |
![]() | |
Message Error: You did not enter an email address. Please enter an email address and resubmit your message. "; } elseif ($sender_email != $sender_email_confirm) { $errors++; echo "Message Error: Your email address and confirmed email address do not match. Please correct this and resubmit your message. "; } if ($message == "") { $errors++; echo "Message Error: You did not include a message. Please enter a message and resubmit. "; } if ($errors > 0) { echo " Fill out the form below and press the Send Your Message button. "; } if ($errors == "0") { // get variables ready for email message $sub = "Site Feedback: " . $subject; $domain = getenv("HTTP_HOST"); $message_formatted = str_replace("\r\n","\n",$message); $msg = "Site: " . $domain . "\n" . "From: " . $sender_name . "\n" . "Email: " . $sender_email . "\n" . "Topic: " . $topic . "\n" . "Subject: " . $subject . "\n\n" . $message_formatted; // send message and let sender know message was successful mail("johnhammell@scholarstuff.com", "$sub", "$msg", "From: \"$sender_name\" <$sender_email>\n"); echo " Your message was submitted successfully. Thank you for contacting us. We will reply as soon as possible."; } break; default: echo " Contacting us is easy!Fill out the form below and press the Send Your Message button. "; } ?> |