• Resolved hopewwe

    (@hopewwe)


    SMTP details are not validating in the Jetpack CRM Delivery Method Wizard. Gmail issue. I tried this with SMTP Port 465 and 587 and neither worked. Password is correct. Enabled IMAP in the gmail account. Opened access to unsecure apps. Logged out and in several times.

    I also completed the steps on this page and its still not working: https://kb.jetpackcrm.com/knowledge-base/using-gmail-with-jetpack-crm-mail-delivery-system/

    Debug Log:

    Debugging SMTP
    SMTP Details Present
    Mailer loaded
    Mailer settings overriden
    Mail body prepped
    2: message: SERVER -> CLIENT: 220 smtp.gmail.com ESMTP a5sm2231823otd.74 - gsmtp 1: message: CLIENT -> SERVER: EHLO hopewwethiopia.org 2: message: SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2403:6b80:7:100::6773:965] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 1: message: CLIENT -> SERVER: AUTH LOGIN 2: message: SERVER -> CLIENT: 334 VXNlcm5hbWU6 1: message: CLIENT -> SERVER: [credentials hidden] 2: message: SERVER -> CLIENT: 334 UGFzc3dvcmQ6 1: message: CLIENT -> SERVER: [credentials hidden] 2: message: SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials a5sm2231823otd.74 - gsmtp 1: message: SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials a5sm2231823otd.74 - gsmtp 2: message: SMTP Error: Could not authenticate. 1: message: CLIENT -> SERVER: QUIT 2: message: SERVER -> CLIENT: 221 2.0.0 closing connection a5sm2231823otd.74 - gsmtp 2: message: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Mail FAILED #exit-1
    ===
    Final Error
    error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Debugging SMTP
    SMTP Details Present
    Mailer loaded
    Mailer settings overriden
    Mail body prepped
    2: message: SERVER -> CLIENT: 220 smtp.gmail.com ESMTP c4sm1530185ook.16 - gsmtp 1: message: CLIENT -> SERVER: EHLO hopewwethiopia.org 2: message: SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2403:6b80:7:100::6773:965] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 1: message: CLIENT -> SERVER: STARTTLS 2: message: SERVER -> CLIENT: 220 2.0.0 Ready to start TLS 1: message: CLIENT -> SERVER: EHLO hopewwethiopia.org 2: message: SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2403:6b80:7:100::6773:965] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 1: message: CLIENT -> SERVER: AUTH LOGIN 2: message: SERVER -> CLIENT: 334 VXNlcm5hbWU6 1: message: CLIENT -> SERVER: [credentials hidden] 2: message: SERVER -> CLIENT: 334 UGFzc3dvcmQ6 1: message: CLIENT -> SERVER: [credentials hidden] 2: message: SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials c4sm1530185ook.16 - gsmtp 1: message: SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials c4sm1530185ook.16 - gsmtp 2: message: SMTP Error: Could not authenticate. 1: message: CLIENT -> SERVER: QUIT 2: message: SERVER -> CLIENT: 221 2.0.0 closing connection c4sm1530185ook.16 - gsmtp 2: message: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Mail FAILED #exit-1
    ===
    Final Error
    error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    • This topic was modified 4 years, 6 months ago by hopewwe. Reason: Tried connecting STMP again after updating crm and got this new debug log message
Viewing 1 replies (of 1 total)
  • Jay

    (@bluejay77)

    Hi @hopewwe,

    According to the logs you shared with us, the issue seems to be related to the login credentials.

    In the logs, we can see that it connects to SMTP so the connection:

    message: SERVER -> CLIENT: 250-smtp.gmail.com at your service
    It then tries to log in:
    CLIENT -> SERVER: AUTH LOGIN
    SERVER -> CLIENT: 334 VXNlcm5hbWU6
    CLIENT -> SERVER: [credentials hidden]
    SERVER -> CLIENT: 334 UGFzc3dvcmQ6
    CLIENT -> SERVER: [credentials hidden]

    But, the login fails:

    SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials

    The issue boils down to login information being incorrect, but you’re welcome to use something like [WP Mail SMTP](https://ww.wp.xz.cn/plugins/wp-mail-smtp/) instead.

    Alternatively, you could check out App Passwords, though we cannot guarantee that it’ll work:

    https://support.google.com/accounts/answer/185833

    Also worth noting is this support page by Google that sometimes fixes things with login issues:

    https://accounts.google.com/b/0/DisplayUnlockCaptcha

    I hope that helps! Let us know if you have any other questions.

Viewing 1 replies (of 1 total)

The topic ‘SMTP details – Gmail not validating’ is closed to new replies.