Home Forums Newsletter Plugin Support Cant connect to gmail smtp?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43512
    Klubtphu
    Participant

    First… Thank you for a great Newsletter plugin!

    I keep getting this message when trying to send!:

    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    Is has worked with no issues up until now? Sending test mail won’t go through. I send out a newsletter today, and the stats says it send out 430 out 430..but no one recieved it. It wont send out confirmation mails either.

    I have entered my smtp data correctly (tried different kinds of ports and etc..) but went back to Port 587 with TLS protocol.
    I have the “less safer apps” enabled on my gmail.
    This it what is says in the box after trying to send a test mail:

    2017-09-04 21:39:20 Connection: opening to smtp.gmail.com:587, timeout=300, options=array (
    )
    2017-09-04 21:39:20 Connection: opened
    2017-09-04 21:39:20 SMTP -> get_lines(): $data is “”
    2017-09-04 21:39:20 SMTP -> get_lines(): $str is “220 smtp.gmail.com ESMTP u196sm735270itc.12 – gsmtp

    2017-09-04 21:39:20 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP u196sm735270itc.12 – gsmtp
    2017-09-04 21:39:20 CLIENT -> SERVER: EHLO klubtphu.dk
    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “”
    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-smtp.gmail.com at your service, [78.46.1.32]

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-SIZE 35882577

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-8BITMIME

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-STARTTLS

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME
    250-STARTTLS

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME
    250-STARTTLS
    250-ENHANCEDSTATUSCODES

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-PIPELINING

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME
    250-STARTTLS
    250-ENHANCEDSTATUSCODES
    250-PIPELINING

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-CHUNKING

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME
    250-STARTTLS
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-CHUNKING

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250 SMTPUTF8

    2017-09-04 21:39:21 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME
    250-STARTTLS
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-CHUNKING
    250 SMTPUTF8
    2017-09-04 21:39:21 CLIENT -> SERVER: STARTTLS
    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “”
    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “220 2.0.0 Ready to start TLS

    2017-09-04 21:39:21 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
    2017-09-04 21:39:21 CLIENT -> SERVER: EHLO klubtphu.dk
    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “”
    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-smtp.gmail.com at your service, [78.46.1.32]

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-SIZE 35882577

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-8BITMIME

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
    250-ENHANCEDSTATUSCODES

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-PIPELINING

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
    250-ENHANCEDSTATUSCODES
    250-PIPELINING

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250-CHUNKING

    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-CHUNKING

    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “250 SMTPUTF8

    2017-09-04 21:39:21 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [78.46.1.32]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-CHUNKING
    250 SMTPUTF8
    2017-09-04 21:39:21 Auth method requested: UNKNOWN
    2017-09-04 21:39:21 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
    2017-09-04 21:39:21 Auth method selected: LOGIN
    2017-09-04 21:39:21 CLIENT -> SERVER: AUTH LOGIN
    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “”
    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “334 VXNlcm5hbWU6

    2017-09-04 21:39:21 SERVER -> CLIENT: 334 VXNlcm5hbWU6
    2017-09-04 21:39:21 CLIENT -> SERVER: dGhvbWFzcGhlamxlQGdtYWlsLmNvbQ==
    2017-09-04 21:39:21 SMTP -> get_lines(): $data is “”
    2017-09-04 21:39:21 SMTP -> get_lines(): $str is “334 UGFzc3dvcmQ6

    2017-09-04 21:39:21 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
    2017-09-04 21:39:21 CLIENT -> SERVER: MTM1OGtiaGs=
    2017-09-04 21:39:22 SMTP -> get_lines(): $data is “”
    2017-09-04 21:39:22 SMTP -> get_lines(): $str is “534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvk

    2017-09-04 21:39:22 SMTP -> get_lines(): $data is “534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvk

    2017-09-04 21:39:22 SMTP -> get_lines(): $str is “534-5.7.14 CHIHUuvCqDsa2IdtLIKkwbH80V0CsWCJg6RvjyvkHPcEYL8Um657xAyhlZ3om15pSyLliW

    2017-09-04 21:39:22 SMTP -> get_lines(): $data is “534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvk
    534-5.7.14 CHIHUuvCqDsa2IdtLIKkwbH80V0CsWCJg6RvjyvkHPcEYL8Um657xAyhlZ3om15pSyLliW

    2017-09-04 21:39:22 SMTP -> get_lines(): $str is “534-5.7.14 ihIDZBL5HixT06KHkUMqjDuYRRigERqX8UNWFafc55-wWXa2USyu9o72iJxA1WXOm9RMxt

    2017-09-04 21:39:22 SMTP -> get_lines(): $data is “534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvk
    534-5.7.14 CHIHUuvCqDsa2IdtLIKkwbH80V0CsWCJg6RvjyvkHPcEYL8Um657xAyhlZ3om15pSyLliW
    534-5.7.14 ihIDZBL5HixT06KHkUMqjDuYRRigERqX8UNWFafc55-wWXa2USyu9o72iJxA1WXOm9RMxt

    2017-09-04 21:39:22 SMTP -> get_lines(): $str is “534-5.7.14 ZWNAwG5XTF-2AANjepvv9H2Peu0jKoSBHHUBSuDLbwub-u5B2yUlvRhHtWLy61-kZKGwu2

    2017-09-04 21:39:22 SMTP -> get_lines(): $data is “534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvk
    534-5.7.14 CHIHUuvCqDsa2IdtLIKkwbH80V0CsWCJg6RvjyvkHPcEYL8Um657xAyhlZ3om15pSyLliW
    534-5.7.14 ihIDZBL5HixT06KHkUMqjDuYRRigERqX8UNWFafc55-wWXa2USyu9o72iJxA1WXOm9RMxt
    534-5.7.14 ZWNAwG5XTF-2AANjepvv9H2Peu0jKoSBHHUBSuDLbwub-u5B2yUlvRhHtWLy61-kZKGwu2

    2017-09-04 21:39:22 SMTP -> get_lines(): $str is “534-5.7.14 jTwXbb1vH7zNrsMJE8DM2_tg4c07c> Please log in via your web browser and

    2017-09-04 21:39:22 SMTP -> get_lines(): $data is “534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvk
    534-5.7.14 CHIHUuvCqDsa2IdtLIKkwbH80V0CsWCJg6RvjyvkHPcEYL8Um657xAyhlZ3om15pSyLliW
    534-5.7.14 ihIDZBL5HixT06KHkUMqjDuYRRigERqX8UNWFafc55-wWXa2USyu9o72iJxA1WXOm9RMxt
    534-5.7.14 ZWNAwG5XTF-2AANjepvv9H2Peu0jKoSBHHUBSuDLbwub-u5B2yUlvRhHtWLy61-kZKGwu2
    534-5.7.14 jTwXbb1vH7zNrsMJE8DM2_tg4c07c> Please log in via your web browser and

    2017-09-04 21:39:22 SMTP -> get_lines(): $str is “534-5.7.14 then try again.

    2017-09-04 21:39:22 SMTP -> get_lines(): $data is “534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvk
    534-5.7.14 CHIHUuvCqDsa2IdtLIKkwbH80V0CsWCJg6RvjyvkHPcEYL8Um657xAyhlZ3om15pSyLliW
    534-5.7.14 ihIDZBL5HixT06KHkUMqjDuYRRigERqX8UNWFafc55-wWXa2USyu9o72iJxA1WXOm9RMxt
    534-5.7.14 ZWNAwG5XTF-2AANjepvv9H2Peu0jKoSBHHUBSuDLbwub-u5B2yUlvRhHtWLy61-kZKGwu2
    534-5.7.14 jTwXbb1vH7zNrsMJE8DM2_tg4c07c> Please log in via your web browser and
    534-5.7.14 then try again.

    2017-09-04 21:39:22 SMTP -> get_lines(): $str is “534-5.7.14 Learn more at

    2017-09-04 21:39:22 SMTP -> get_lines(): $data is “534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvk
    534-5.7.14 CHIHUuvCqDsa2IdtLIKkwbH80V0CsWCJg6RvjyvkHPcEYL8Um657xAyhlZ3om15pSyLliW
    534-5.7.14 ihIDZBL5HixT06KHkUMqjDuYRRigERqX8UNWFafc55-wWXa2USyu9o72iJxA1WXOm9RMxt
    534-5.7.14 ZWNAwG5XTF-2AANjepvv9H2Peu0jKoSBHHUBSuDLbwub-u5B2yUlvRhHtWLy61-kZKGwu2
    534-5.7.14 jTwXbb1vH7zNrsMJE8DM2_tg4c07c> Please log in via your web browser and
    534-5.7.14 then try again.
    534-5.7.14 Learn more at

    2017-09-04 21:39:22 SMTP -> get_lines(): $str is “534 5.7.14 https://support.google.com/mail/answer/78754 u196sm735270itc.12 – gsmtp

    2017-09-04 21:39:22 SERVER -> CLIENT: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvk
    534-5.7.14 CHIHUuvCqDsa2IdtLIKkwbH80V0CsWCJg6RvjyvkHPcEYL8Um657xAyhlZ3om15pSyLliW
    534-5.7.14 ihIDZBL5HixT06KHkUMqjDuYRRigERqX8UNWFafc55-wWXa2USyu9o72iJxA1WXOm9RMxt
    534-5.7.14 ZWNAwG5XTF-2AANjepvv9H2Peu0jKoSBHHUBSuDLbwub-u5B2yUlvRhHtWLy61-kZKGwu2
    534-5.7.14 jTwXbb1vH7zNrsMJE8DM2_tg4c07c> Please log in via your web browser and
    534-5.7.14 then try again.
    534-5.7.14 Learn more at
    534 5.7.14 https://support.google.com/mail/answer/78754 u196sm735270itc.12 – gsmtp
    2017-09-04 21:39:22 SMTP ERROR: Password command failed: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvk
    534-5.7.14 CHIHUuvCqDsa2IdtLIKkwbH80V0CsWCJg6RvjyvkHPcEYL8Um657xAyhlZ3om15pSyLliW
    534-5.7.14 ihIDZBL5HixT06KHkUMqjDuYRRigERqX8UNWFafc55-wWXa2USyu9o72iJxA1WXOm9RMxt
    534-5.7.14 ZWNAwG5XTF-2AANjepvv9H2Peu0jKoSBHHUBSuDLbwub-u5B2yUlvRhHtWLy61-kZKGwu2
    534-5.7.14 jTwXbb1vH7zNrsMJE8DM2_tg4c07c> Please log in via your web browser and
    534-5.7.14 then try again.
    534-5.7.14 Learn more at
    534 5.7.14 https://support.google.com/mail/answer/78754 u196sm735270itc.12 – gsmtp
    2017-09-04 21:39:22 SMTP Error: Could not authenticate.
    2017-09-04 21:39:22 CLIENT -> SERVER: QUIT
    2017-09-04 21:39:22 SMTP -> get_lines(): $data is “”
    2017-09-04 21:39:22 SMTP -> get_lines(): $str is “221 2.0.0 closing connection u196sm735270itc.12 – gsmtp

    2017-09-04 21:39:22 SERVER -> CLIENT: 221 2.0.0 closing connection u196sm735270itc.12 – gsmtp
    2017-09-04 21:39:22 Connection: closed
    2017-09-04 21:39:22 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    #43554
    Stefano
    Keymaster

    Gmail does not allow basic connection without auth2, you should unlock the old smtp connection mode but probably they will remove it.

    Use postman plugin which support the auth2 and let Newsletter to send without the SMTP so the emails will run througth postman.

    Stefano.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.