SMTP server response: 553 This SMTP server requires authorisation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • creative1
    Contributor
    • Sep 2007
    • 274

    SMTP server response: 553 This SMTP server requires authorisation

    I am trying to setup contactus page. and testing it to work throug localhostI. I ahve setup everything php.ini and even tred to use following to make sure that everything is ok:

    Code:
    ini_set("SMTP","mail.name.com"); // thats how I setup my outlook 
    ini_set("smtp_port","25");
    ini_set("sendmail_from","address@hotmail.com"); 
    ini_set("auth", true);
    
    if(mail($admin_email,$email_subject,$message,"From:$check_email,Reply-to:$check_email")) {
    header("Location: contactUs.php?status=1");
    exit;
    } else {
    header("Location: contactUs.php?status=0");
    }
    I get follwoing error:
    Code:
    Warning: mail() [function.mail]: SMTP server response: 553 This SMTP server requires authorisation. Most mail clients can be configured with "my server requires authorisation" to allow this in C:\xampp\htdocs\idols\contactUS\send_email.php on line 56
    and line whee I am asked to do that is :
    Code:
    if(mail($admin_email,$email_subject,$message,"From:$check_email,Reply-to:$check_email")) {
    now I need to know what I should do specify that server needs to be authenticated and where? any help?
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    By adding this line, you have initialized the SMTP authorization to true state.
    [PHP]ini_set("auth", true);[/PHP]

    Are you sure about that your SMTP server requires authentication with a username/password? Most of the SMTP servers are open and no need of authorization. Check with your ISP first or simply check the settings on your outlook. you can find similar settings there also. if your smtp server doesn't require autentication just remove that line from your script and execute it.

    But as per the error message, its asking about the username and password for the SMTP server.

    Comment

    Working...