• Hi there,

    Firstly, awesome plugin. Worked fine for a number of weeks and alleviated a massive headache of mine.

    Unfortunately, over the last few days our emails on our WordPress site have ceased to work again and after checking the error log it appears to be caused by an authentication error.

    I actually changed the gmail account being used’s password recently and as far as I know this shouldn’t matter but I can’t help but think it might be related.

    I’ve tried creating new credentials and deactivating / reactivating the plugin but to no avail.

    Anyone have any idea how to get it back working?

    Thanks

    Here is the log and server info:

    2018-06-22 16:10:27 Connection: opening to smtp.gmail.com:587, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
    2018-06-22 16:10:27 Connection: opened
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is ""
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "220 smtp.gmail.com ESMTP q17-v6sm9375112wro.30 - gsmtp"
    2018-06-22 16:10:27 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP q17-v6sm9375112wro.30 - gsmtp
    2018-06-22 16:10:27 CLIENT -> SERVER: EHLO fyldegrass.co.uk
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is ""
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-SIZE 35882577"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-8BITMIME"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-STARTTLS"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-STARTTLS"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-PIPELINING"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-CHUNKING"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250 SMTPUTF8"
    2018-06-22 16:10:27 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
    2018-06-22 16:10:27 CLIENT -> SERVER: STARTTLS
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is ""
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS"
    2018-06-22 16:10:27 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
    2018-06-22 16:10:27 CLIENT -> SERVER: EHLO fyldegrass.co.uk
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is ""
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-SIZE 35882577"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-8BITMIME"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-PIPELINING"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250-CHUNKING"
    2018-06-22 16:10:27 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING"
    2018-06-22 16:10:27 SMTP -> get_lines(): $str is "250 SMTPUTF8"
    2018-06-22 16:10:27 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2001:8d8:917:4d00::7c:8d9b]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
    2018-06-22 16:10:27 Auth method requested: XOAUTH2
    2018-06-22 16:10:27 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
    2018-06-22 16:10:28 CLIENT -> SERVER: AUTH XOAUTH2 dXNlcj1meWxkZWdyYXNzQGdtYWlsLmNvbQFhdXRoPUJlYXJlciABAQ==
    2018-06-22 16:10:28 SMTP -> get_lines(): $data is ""
    2018-06-22 16:10:28 SMTP -> get_lines(): $str is "334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ=="
    2018-06-22 16:10:28 SERVER -> CLIENT: 334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
    2018-06-22 16:10:28 SMTP ERROR: AUTH command failed: 334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
    SMTP Error: Could not authenticate.
    2018-06-22 16:10:28 CLIENT -> SERVER: QUIT
    2018-06-22 16:10:28 SMTP -> get_lines(): $data is ""
    2018-06-22 16:10:28 SMTP -> get_lines(): $str is "535-5.7.8 Username and Password not accepted. Learn more at"
    2018-06-22 16:10:28 SMTP -> get_lines(): $data is "535-5.7.8 Username and Password not accepted. Learn more at"
    2018-06-22 16:10:28 SMTP -> get_lines(): $str is "535 5.7.8 https://support.google.com/mail/?p=BadCredentials q17-v6sm9375112wro.30 - gsmtp"
    2018-06-22 16:10:28 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials q17-v6sm9375112wro.30 - gsmtp
    2018-06-22 16:10:28 SMTP ERROR: QUIT command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials q17-v6sm9375112wro.30 - gsmtp
    2018-06-22 16:10:28 Connection: closed
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    And these are my server settings:

    OS: Linux s17525125.onlinehome-server.info 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 20:57:37 UTC 2015 x86_64
    PHP version: 5.6.33
    WordPress version: 4.9.6
    WordPress multisite: No
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.19.7, NSS/3.27.1

Viewing 5 replies - 1 through 5 (of 5 total)
  • I had the same exact problem, couldnt work out a solution so I installed a new smtp plugin 🙁

    Plugin Author Noor Alam

    (@naa986)

    @constantvariable, This error must e coming from Gmail. Please do a fresh authorization and see how it goes:

    https://wphowto.net/gmail-smtp-plugin-for-wordpress-1341

    I’m having the same issue. After the account email password was changed the authentication doesn’t work.

    – I tried re-installing the plugin
    – I tried doing a fresh authorization from gmail setting up a new oAuth with new client ID and client secret. … it still doesn’t work.

    Help!?

    
    2018-08-13 14:40:44 Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()
    2018-08-13 14:40:44 Connection: opened
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is ""
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "220 smtp.gmail.com ESMTP b18-v6sm21327771pgk.15 - gsmtp"
    2018-08-13 14:40:44 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP b18-v6sm21327771pgk.15 - gsmtp
    2018-08-13 14:40:44 CLIENT -> SERVER: EHLO freshstartfamilyonline.com
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is ""
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [66.172.34.3]"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-SIZE 35882577"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-8BITMIME"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-STARTTLS"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME250-STARTTLS"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-PIPELINING"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-CHUNKING"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250 SMTPUTF8"
    2018-08-13 14:40:44 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
    2018-08-13 14:40:44 CLIENT -> SERVER: STARTTLS
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is ""
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS"
    2018-08-13 14:40:44 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
    2018-08-13 14:40:44 CLIENT -> SERVER: EHLO freshstartfamilyonline.com
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is ""
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [66.172.34.3]"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-SIZE 35882577"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-8BITMIME"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-PIPELINING"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250-CHUNKING"
    2018-08-13 14:40:44 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING"
    2018-08-13 14:40:44 SMTP -> get_lines(): $str is "250 SMTPUTF8"
    2018-08-13 14:40:44 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [66.172.34.3]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
    2018-08-13 14:40:44 Auth method requested: XOAUTH2
    2018-08-13 14:40:44 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
    2018-08-13 14:40:45 CLIENT -> SERVER: AUTH XOAUTH2 dXNlcj1hZG1pbkBmcmVzaHN0YXJ0ZmFtaWx5b25saW5lLmNvbQFhdXRoPUJlYXJlciABAQ==
    2018-08-13 14:40:46 SMTP -> get_lines(): $data is ""
    2018-08-13 14:40:46 SMTP -> get_lines(): $str is "334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ=="
    2018-08-13 14:40:46 SERVER -> CLIENT: 334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
    2018-08-13 14:40:46 SMTP ERROR: AUTH command failed: 334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
    SMTP Error: Could not authenticate.
    2018-08-13 14:40:46 CLIENT -> SERVER: QUIT
    2018-08-13 14:40:46 SMTP -> get_lines(): $data is ""
    2018-08-13 14:40:46 SMTP -> get_lines(): $str is "535-5.7.8 Username and Password not accepted. Learn more at"
    2018-08-13 14:40:46 SMTP -> get_lines(): $data is "535-5.7.8 Username and Password not accepted. Learn more at"
    2018-08-13 14:40:46 SMTP -> get_lines(): $str is "535 5.7.8 https://support.google.com/mail/?p=BadCredentials b18-v6sm21327771pgk.15 - gsmtp"
    2018-08-13 14:40:46 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials b18-v6sm21327771pgk.15 - gsmtp
    2018-08-13 14:40:46 SMTP ERROR: QUIT command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials b18-v6sm21327771pgk.15 - gsmtp
    2018-08-13 14:40:46 Connection: closed
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    

    Oh here is my server info:

    OS: Linux FreshStartFamilyOnline-com 3.10.0-327.18.2.el7.centos.plus.x86_64 #1 SMP Fri May 13 02:05:28 UTC 2016 x86_64
    PHP version: 7.0.31
    WordPress version: 4.9.8
    WordPress multisite: No
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.29.0, NSS/3.34

    Same issue here. Probably just going to switch plugins

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘SMTP Error: Not Authorised (happened after changing password)’ is closed to new replies.