Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Yahoo and PHP mail()
March 16, 2006, 4:08 pm
rate this thread
heck of a time getting mail() to work. My script returns the thank you
and apperas to run through but no mail is recieved and the error log is
spitting out error: unknown. Any ideas? I have reduced it down to just
trying to get a mail to go through. And so far Yahoo! has been
absolutely no help at all, just lied to me several times.
Thank you very much.
$to = "email@example.com";
$youremail = "firstname.lastname@example.org";
$mailheaders = "From: $youremail\r\n";
$subject = "Your comments";
$strMessageBody =" testing this thing.";
mail($to, $subject, $strMessageBody, $mailheaders);
echo "<h2>Thank you</h2>";
Re: Yahoo and PHP mail()
Two, as a matter of fact:
1. Did you enable mailing from your Web Hosting Control
2. What is the sender's address? Yahoo! requires it to be
in the domain name you're hosting.
For more information, see here: