• Resolved truongxuanthang

    (@truongxuanthang)


    I use plugin WP Mail SMTP by WPForms. I can’t test send mail. Error, help me, thanks

    Versions:
    WordPress: 4.9.8
    WordPress MS: No
    PHP: 7.3.19
    WP Mail SMTP: 2.6.0

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not authenticate.
    Host: smtp.gmail.com
    Port: 465
    SMTPSecure: ssl
    SMTPAutoTLS: bool(false)
    SMTPAuth: bool(true)

    Server:
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017

    Debug:
    Mailer: Other SMTP SMTP Error: Could not authenticate.

    SMTP Debug:
    2021-02-17 01:03:22 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array ( ) 2021-02-17 01:03:22 Connection: opened 2021-02-17 01:03:22 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP u19sm162780pjy.20 – gsmtp 2021-02-17 01:03:22 CLIENT -> SERVER: EHLO vietlawgroup.com 2021-02-17 01:03:23 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2405:7bc0:0:2::2010] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 2021-02-17 01:03:23 CLIENT -> SERVER: AUTH LOGIN 2021-02-17 01:03:23 SERVER -> CLIENT: 334 VXNlcm5hbWU6 2021-02-17 01:03:23 CLIENT -> SERVER: dHJ1b25neHVhbnRoYW5nQGdtYWlsLmNvbQ== 2021-02-17 01:03:23 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2021-02-17 01:03:23 CLIENT -> SERVER: aG9tcXVhdmlldGxhdw== 2021-02-17 01:03:23 SERVER -> CLIENT: 534-5.7.9 Application-specific password required. Learn more at 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor u19sm162780pjy.20 – gsmtp 2021-02-17 01:03:23 SMTP ERROR: Password command failed: 534-5.7.9 Application-specific password required. Learn more at 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor u19sm162780pjy.20 – gsmtp 2021-02-17 01:03:23 SMTP Error: Could not authenticate. 2021-02-17 01:03:23 CLIENT -> SERVER: QUIT 2021-02-17 01:03:24 SERVER -> CLIENT: 221 2.0.0 closing connection u19sm162780pjy.20 – gsmtp 2021-02-17 01:03:24 Connection: closed 2021-02-17 01:03:24 SMTP Error: Could not authenticate.
    Please copy only the content of the error debug message above, identified with an orange left border, into the support forum topic if you experience any issues.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter truongxuanthang

    (@truongxuanthang)

    Versions:
    WordPress: 4.9.8
    WordPress MS: No
    PHP: 7.3.19
    WP Mail SMTP: 2.6.0

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not authenticate.
    Host: smtp.gmail.com
    Port: 465
    SMTPSecure: ssl
    SMTPAutoTLS: bool(false)
    SMTPAuth: bool(true)

    Server:
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017

    Debug:
    Mailer: Other SMTP SMTP Error: Could not authenticate.
    SMTP Debug:
    2021-02-17 01:03:22 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array ( )
    2021-02-17 01:03:22 Connection: opened
    2021-02-17 01:03:22 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP u19sm162780pjy.20 – gsmtp
    2021-02-17 01:03:22 CLIENT -> SERVER: EHLO vietlawgroup.com
    2021-02-17 01:03:23 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2405:7bc0:0:2::2010]
    250-SIZE 35882577
    250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-CHUNKING
    250 SMTPUTF8
    2021-02-17 01:03:23 CLIENT -> SERVER: AUTH LOGIN
    2021-02-17 01:03:23 SERVER -> CLIENT: 334 VXNlcm5hbWU6
    2021-02-17 01:03:23 CLIENT -> SERVER: dHJ1b25neHVhbnRoYW5nQGdtYWlsLmNvbQ== 2021-02-17 01:03:23 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
    2021-02-17 01:03:23 CLIENT -> SERVER: aG9tcXVhdmlldGxhdw==
    2021-02-17 01:03:23 SERVER -> CLIENT: 534-5.7.9 Application-specific password required. Learn more at 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor u19sm162780pjy.20 – gsmtp
    2021-02-17 01:03:23 SMTP ERROR: Password command failed: 534-5.7.9 Application-specific password required. Learn more at 534 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor u19sm162780pjy.20 – gsmtp 2021-02-17 01:03:23 SMTP Error: Could not authenticate.
    2021-02-17 01:03:23 CLIENT -> SERVER: QUIT
    2021-02-17 01:03:24 SERVER -> CLIENT:
    221 2.0.0 closing connection u19sm162780pjy.20 – gsmtp
    2021-02-17 01:03:24 Connection: closed
    2021-02-17 01:03:24 SMTP Error: Could not authenticate.

    Plugin Support Darshana

    (@darshanaw)

    Hi @truongxuanthang,

    It seems that you have enabled 2FA (two-factor authentication) on that Gmail account. In that case, you need to generate an “App Password” and use it instead of your email password for the SMTP Password field under WP Mail SMTP -> Settings area.

    Please refer to the following resource for more information (https://support.google.com/accounts/answer/185833).

    I hope this helps!

    Thread Starter truongxuanthang

    (@truongxuanthang)

    Thanks, i test mail ok.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Support SMTP (WP Mail SMTP by WPForms)’ is closed to new replies.