|
Posted by Lildog on 11/18/24 11:42
I recently signed up for a yahoo small business account and am having a
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.
Lildog
<?php
ini_set ("sendmail_from","youraddress@somewhere.com");
$to = "youraddress@somewhere.com";
$youremail = "youraddress@somewhere.com";
$mailheaders = "From: $youremail\r\n";
$subject = "Your comments";
$strMessageBody =" testing this thing.";
mail($to, $subject, $strMessageBody, $mailheaders);
echo "<h2>Thank you</h2>";
phpinfo();
?>
Navigation:
[Reply to this message]
|