View Single Post
Old 9th May 2013, 06:23
darinpeterson darinpeterson is offline
HowtoForge Supporter
Join Date: Nov 2011
Posts: 154
Thanks: 35
Thanked 13 Times in 13 Posts
Question PHPMailer Authentication Problem Possibly Caused by ISPConfig 3 Configuration?

OS: Debian Squeeze, Dovecot
ISPConfig: v3.0.5.2

I am trying to use PHPMailer to connect to my mail server, and I keep getting the following authentication error:

SMTP -> ERROR: Password not accepted from server: 535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6
Initially I thought this was cause because openssl was not enabled for PHP, but I checked php -i, and it is enabled.

I changed the password several times, and it still will not authenticate. Here's my code, and I have enabled smtpd:

$mail = new PHPMailer();
        $mail->SMTPDebug = 1;
        $mail->Host = 'mail.server.tld';
        $mail->Port = 587;
        $mail->Username = 'client@anotherdomain.tld';
        $mail->Password = 'zzzzzz';
        $mail->SMTPAuth = true;
        $mail->SMTPSecure = 'tls';
        $mail->FromName = 'Name';
        $mail->From = 'client@anotherdomain.tld';
        $mail->Subject = $subject;
        $mail->Body = $mail_message;
        if (!$mail->Send()) {
            echo "Could not deliver message to: $to.<br/>";
My mail clients use the same information as I placed in the configuration above, and have no problems connecting.

Is there something in ISPConfig 3 that might be preventing me from connecting to the mail server via PHPMailer?
Reply With Quote
Sponsored Links