#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    14
    Rep Power
    0

    Question Mail function and authentication


    Hi All
    I am using the PHP mail() function to send emails for verification to register on a site that I am developing. It was working at one time. Now I am getting the following error message:

    Warning: mail(): SMTP server response: 503 you must authenticate first (#5.5.1)

    This is not a problem on the web server just on my developing system but it was working at one time! I understand the authentication issue and I do realize that I cannot send the password associated with the "from" email address so I am wondering how it ever worked. The mail server that I use (Network Solutions) does require authentication. Again I am just perplexed as to how did it ever work?? Any thoughts or insights would be greatly appreciated.

    Respectfully,
    IDEPRIZE

    Comments on this post

    • sir_drinxalot agrees : 10 points for curiosity!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2003
    Posts
    3,604
    Rep Power
    595
    Perhaps authentication was only turned on recently.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    14
    Rep Power
    0
    If you mean by "Network Solutions" I doubt that. If you try to setup a mail box under Outlook it will not send mail without SMTP authentication turned on - 5 years ago! The other side of this issue implies that the Web Server "ISP system" must not require authentication? I think ultimately I am looking at changing to the Pear mail system. I just distrust unknowns they always come back to bite you! Thanks for your response "gw".

    Respectfully,
    IDEPRIZE
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Location
    China
    Posts
    21
    Rep Power
    0
    I'd suggest you use PHPMailer, it's much more robust and secure than the built-in mail() function.

    I can't post URLs as I'm a new user, but google it, it's in github, along with good examples.

    -Ifor

    Comments on this post

    • richpri agrees : PHPMailer is the way to go!
    • gw1500se disagrees : Let's not confuse the OP. PHPMailer has nothing to do with the OP's question about a change in authentication requirements.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    14
    Rep Power
    0
    Thanks for the suggestion "iforwms" and thanks also to "richpri" and "gw" for the comments on "iforwms" suggestion.

    I am now convinced why mail() worked at one time is somewhere resident in "oblivion". What I did to confirm that it was indeed an authentication issue was download sendmail and front end mail() with its authentication provision. Once that was in place mail() was operational again. I will look into the PHPmailer application for I need to consider the problem of mail() under heavy load. I have been looking at the pear mail system as well. Again my thanks to all who have extended their time and expertise to assist me. It's always nice to know that there is "light in the tunnel".

    Respectfully,
    IDEPRIZE

IMN logo majestic logo threadwatch logo seochat tools logo