<?php
// Put your Godaddy account email address here:
$recipient = "info@mysite.com";
$subject = "This is an email test";
$sender = "nobody@aol.com";
$fmessage = "This is a test of my email";
$message = "
Email Test
---------------------------------------------------
$fmessage
---------------------------------------------------
";
$extraheaders = "From: $sender\nReply-To: $sender\n\n";
if (! mail($recipient, $subject, $message, $extraheaders)){
echo "Mail did not send for some reason.";
}
else{
echo "Email Sent";
}
?>
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Top 21 PHP Programming mistakes | thexchord | PHP | 18 | March 10 '10 09:52 AM |
| Picking up a users IP address in my PHP contact form? | ItalianMike | PHP | 1 | February 6 '09 02:05 PM |
| PHP Contact Form Help! Please! | msm446 | PHP | 3 | January 17 '09 01:41 PM |
| PHP Contact Form Email Verification | Abstract | PHP | 4 | October 27 '08 10:57 PM |
| Basic PHP Uploads Tutorial | thexchord | Coding Articles & Tutorials | 2 | May 2 '02 09:28 PM |