Forum Moderators: mack

Message Too Old, No Replies

testing php mail() at home

smtp login problem

         

johnraff

5:52 am on Apr 1, 2006 (gmt 0)



Hi, I've looked around the forum, but haven't been able to come across an easy answer to this- maybe there isn't one?

I've got Apache and php set up on my Win98 machine to test scripts before uploading them, and everything seems to be working OK except that I can't get my ISP's SMTP server to accept the mails that mail() sends out. They work fine if I upload the script to my website, but at home i get a "admin refusal" or something.

I've got the mail stuff in php.ini set to my ISP's SMTP server and email address, and Thunderbird logs into that OK, so my guess is that the ISP wants a username and password before accepting the mail for sending. Is there an easy way to get php to send off that info with the mail?