Suddenly I can't send email
Posted: 16. October 2009 18:52
I have a web page that sends an email, and was working a few weeks ago. Now I've made another one using basically the same php code but the php mail() function now gives me the following error:
Warning: mail() [function.mail]: SMTP server response: 530 authentication required - "for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html" in C:\xampp\htdocs\IOD\WOTCPg3Test.php on line 136
Here's the code from my php script that gets the error:
Can anyone tell me what the error message means by "...530 authentication required ? I can successfully send via Outlook from the above "From" address without a problem, and can also receive email via that account.
Also, I just discovered that if I upload my page to my remote host, the email works. That leads me to believe that the problem is somehow connected to my localhost, possibly with Mercury Mail. The problem is that I don't have a clue where or for what to look. Can someone help me?
Warning: mail() [function.mail]: SMTP server response: 530 authentication required - "for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html" in C:\xampp\htdocs\IOD\WOTCPg3Test.php on line 136
Here's the code from my php script that gets the error:
- Code: Select all
$to = "creacontech@yahoo.com";
$from = "creacontech@windstream.net";
$headers = "From: $from";
$subject = "WOTC Questionnaire Report Request";
$message = $custident." has executed a WOTC Questionnaire for: <br />".
$applname.", SSN ".$arrappl[ssn]." DOB ".$arrappl[dob]."<br />
and has requested the following reports: <br />";
for ($i=0; $i<=$numreps; $i++)
{
$message = $message.$arrpsel[$i].", ";
}
echo "<br /> To: = ".$to." From = ".$from."<br /> message = ".$message;
if (mail($to,$subject,$message,$headers))
{
printf("The following email was sent:<br /><br /> To: %s<br /><br />Subj: %s<br />
<br />Your WOTC Questionnaire for:<br /><br /> Name: %s",
$to,$subject,$arrappl[fullname]);
}
else
{
echo "<br />An ERROR was encountered and the email WAS NOT SENT<br />
Contact your webmaster for assistance.<br /><br />";
}
Can anyone tell me what the error message means by "...530 authentication required ? I can successfully send via Outlook from the above "From" address without a problem, and can also receive email via that account.
Also, I just discovered that if I upload my page to my remote host, the email works. That leads me to believe that the problem is somehow connected to my localhost, possibly with Mercury Mail. The problem is that I don't have a clue where or for what to look. Can someone help me?