The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

phpmailer - SMTP Error: Could not authenticate

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

  1. leorou

    leorou Registered

    Joined:
    Apr 11, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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:
    18
    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,
     
Loading...

Share This Page