More on Send Mail Contact Form Home page
The send.php program is below, copy it into notepad and save as send.php or go to the down load page and down load it as a zip file along with the contact form.
//Copy this into notepad and then save it to a file called send.php //Configuration Set your email address here $email_address = "me@umydomain.com"; //This should be changed to your email address. $subject_prefix = "Website Contact - "; //This will be the subject prefix of all emails. default "Website Contact - User Subject // --- Do not modify below --- //Collects varibles from previous page, the Contact form $name = $_POST['name']; $email = $_POST['email']; $subject = $subject_prefix . $_POST['subject']; $message = $_POST['message']; //This part is intended to prevent malicious acts such as being used by spammers //Most servers are setup in such a way that this section is not needed but its a good security precaution to have. $from = urldecode($email); if (eregi("\r",$from) || eregi("\n",$from)){ print "Malformed Headers were detected."; exit; } // The Content of the email includes all the fields listed $message = "Name: $name \nEmail: $email \nSubject: $subject \nMessage: $message "; //This part sends the email to you. mail($email_address, $subject, $message, "From: $email"); //Redirects to sent.htm //What follows is the WEB page thanking them for sending the contact info // Change this to suite your requirements ?> Web Contact completed Thanks for your message print $name; ?> Best Regards Continue looking at Harrycroll.com
Thanks for your message print $name; ?>
Best Regards
Continue looking at Harrycroll.com