For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2006 > yahoo and mail()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author yahoo and mail()
Lildog

2006-03-16, 6:56 pm

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();
?>
joelucas@gmail.com

2006-03-18, 6:56 pm

Yahoo is a bit tricky with the mail function. I just recently switched
over to them myself and all of a sudden none of my mail scripts worked.
The article below helped me out some, basically you just want to set
up the Default return address in your control panel. Yahoo also places
a requirment that the return address must be within your domain.

http://help.yahoo.com/help/us/webho...php/php-17.html

Link to Page that describes Yahoo's support for different PHP
functions:
http://help.yahoo.com/help/us/webho...php/php-33.html

Hope that helps.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com