mail()Relaying denied. Proper authentication required

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

when sending an email from the mail() function I get this message:
Proper authentication required

I did set the php.ini values like this:
SMTP = ; for Win32 only
smtp_port = 25
sendmail_from=; for Win32 only

I am coding on a "localhost" machine and I believed that connecting to a
mail server like it's done above would work. what's wrong ? How to set
authentication for letting my server accept my mail ?


Re: mail()Relaying denied. Proper authentication required

Bob Bedford wrote:
Quoted text here. Click to load it
to a

Most likely, your SMTP server requires authorization.  Turn it off
or, better yet, forget the mail() function and incorporate phpMailer
into your application.  This way, your application could be deployed
anywhere and work without eithrt local or remote SMTP server.

phpMailer can be found here: /


Site Timeline