Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

phpmailer - SMTP Error: Could not authenticate

Discussion in 'E-mail Discussion' started by leorou, Apr 11, 2008.

  1. leorou

    leorou Registered

    Joined:
    Apr 11, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hello. I'm new in the forum but not using cPanel, when i have to buy some domain for any client, i always ask for cPanel, it is a requirement to me.

    Well, i'm having some trouble with phpMailer in one of the web page i maintain. I tried all, searching the forum, internet, configuring my connection script a thousands ways, but no luck for me.

    Here is the connection part of the script:

    $mail->Mailer = "smtp";
    $mail->Host = "mail.domain.org";
    $mail->SMTPAuth = True;
    $mail->Username = 'noreply+domain.org';
    $mail->Password = 'password';
    $mail->From = "noreply@domain.org";

    I get the "SMTP Error: Could not authenticate" error from phpMailer. Please, any ideas? Thanks a lot.

    Leo.
     
  2. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Gatineau, Quebec, Canada
    For fun,

    Did you try setting:

    $mail->Username = 'noreply@domain.org';

    Basically, use the @ sign instead of the + sign?

    Let me know. I know the cPanel sub-system will support + signs, but I don't know if the MTA (Exim) does though...

    Regards,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice