mail()Relaying denied. Proper authentication required

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Bedford

    mail()Relaying denied. Proper authentication required

    when sending an email from the mail() function I get this message:
    mail(): SMTP server response: 550 5.7.1 <test@test.com> ... Relaying denied.
    Proper authentication required

    I did set the php.ini values like this:
    SMTP = mail.myserver.c om ; for Win32 only
    smtp_port = 25
    sendmail_from= webmaster@myser ver.com; 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 ?

    Bob


  • NC

    #2
    Re: mail()Relaying denied. Proper authentication required

    Bob Bedford wrote:[color=blue]
    >
    > when sending an email from the mail() function I get this message:
    > mail(): SMTP server response: 550 5.7.1 <test@test.com> ... Relaying[/color]
    denied.[color=blue]
    > Proper authentication required
    >
    > I did set the php.ini values like this:
    > SMTP = mail.myserver.c om ; for Win32 only
    > smtp_port = 25
    > sendmail_from= webmaster@myser ver.com; for Win32 only
    >
    > I am coding on a "localhost" machine and I believed that connecting[/color]
    to a[color=blue]
    > mail server like it's done above would work. what's wrong ?[/color]

    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:



    Cheers,
    NC

    Comment

    Working...