I'm getting this error while attempting to send an email from my localhost, as a test.
Warning: mail() [function.mail]: SMTP server response: 554 <email@example.com>: Relay access denied in C:\WebServer\Apache\htdocs\_php\lost_password.php on line 135
It's an Apache server, latest PHP, on Windows XP.
I have configured PHP.ini SMTP to my actual SMTP server, and am using a valid email address from that server. I believe it's not relaying because of the lack of authentication.
I have searched the web for an authentication method in this mail function, but all I could find was some people's posts in other forums saying that PHP mail() does not support authentication.
I refused to believe that, and so here I am. Is that for real? I mean... it's just plain stupid! I need to be able to relay from remote servers! If PHP mail() doesn't support that, how may I accomplish this?
ive used the sendmail class from phpclasses for 7+ years without any problems. It did take a little bit of work to integrate it into my codebase but worked fine. PHPclasses is a useful resource.. well worth looking at. even if you can't find something that exactly meets your requirements then you can often find somethign to base your own class, and it should go without saying when you do develop or extend a class consider listing that class on the website