• Resolved aaylersghost

    (@aaylersghost)


    Hello,

    After upgrading to 1.0.0 (and then 1.0.2) from 10.1, we are experiencing issues with SMTP authentication. Another environment that is still running the 10.1 version of the plugin is without this issue. The credentials haven’t been touched.

    Attached is the error log:

    There was a problem while sending a test email.
    The related debugging output is shown below:
    Versions
    
    WordPress: 4.9.1
    PHP: 7.0.23
    WP Mail SMTP: 1.0.2
    PHPMailer
    
    ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Mailer: smtp
    Host: mail.xxxxx.org
    Port: 25
    SMTPSecure: string(0) "" 
    SMTPAutoTLS: bool(false) 
    SMTPAuth: bool(true)
    SMTP Debug
    
    2017-12-12 19:59:54	SERVER -> CLIENT: 220 yyy.na.xxxxx.ORG Microsoft ESMTP MAIL Service ready at Tue, 12 Dec 2017 14:59:53 -0500
    2017-12-12 19:59:54	CLIENT -> SERVER: EHLO appserver-xxxxx.c.pantheon-dmz.internal
    2017-12-12 19:59:54	SERVER -> CLIENT: 250-yyy.na.xxxxx.ORG Hello [23.253.213.149]
    250-SIZE
    250-PIPELINING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-STARTTLS
    250-X-ANONYMOUSTLS
    250-AUTH NTLM
    250-X-EXPS GSSAPI NTLM
    250-8BITMIME
    250-BINARYMIME
    250-CHUNKING
    250-XEXCH50
    250-XRDST
    250 XSHADOW
    2017-12-12 19:59:54	SMTP Error: Could not authenticate.
    2017-12-12 19:59:54	CLIENT -> SERVER: QUIT
    2017-12-12 19:59:54	SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
    2017-12-12 19:59:54	SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jared Atchison

    (@jaredatch)

    Hey aaylersghost,

    Thanks for reaching out!

    In 0.11 and 1.0, we disabled SMTPAutoTLS because it was giving some users issues. However it now seems that doing that causes issues for other users.

    When you get a chance, the code snippet below should resolve the issue, if this problem is indeed caused by the changed SMTPAutoTLS setting. It should go in your site’s functions.php file or similar.

    
    function wpmailsmtp_enable_autotls( $mailer ) {
    	$mailer->SMTPAutoTLS = true;
    	return $mailer;
    }
    add_filter( 'wp_mail_smtp_custom_options', 'wpmailsmtp_enable_autotls' );
    

    What we’ll likely be doing is releasing an update in the coming days that changes the default of this setting back enabled, then provide an option in the setting to easily disable it for those users that experience issues. This way the setting is flexible and users can see which works best for them.

    Hope that helps! Thanks for your patience 🙂

    Thread Starter aaylersghost

    (@aaylersghost)

    hi @jaredatch, thanks for the prompt response. i’ve applied the filter and all’s good.

    looking forward to seeing this as a setting option in the near future!

    best,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘SMTP connect failed’ is closed to new replies.