setup Gmail SMTP for OAuth 2.0 mechanism for SMTP authentication
sent a test email from the Gmail plugin which was successful
sent a test email to myself from the Email Subscriber & Newsletter plugin ( this is the plugin that won’t work ) this was also successful.
sent a test from multiple addresses from from the Email Subscriber & Newsletter plugin ( this is the plugin that won’t work ) 504 gateway error. got no email from google about too many attempts.
sent another test message from the gmail plugin see below
Auth method requested: XOAUTH2
Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
CLIENT -> SERVER: AUTH XOAUTH2 dXNlcj1pbmZvQG55Y21pZHdpdmVzLm9yZwFhdXRoPUJlYXJlciB5YTI5LkNpODNBLWFYMFdXSHNEVUx0WXpDd0J0R01oVmoxZkR0M2dCV1dMYVRkVkJlWElHSWJvSk9iVldvb3R3QkZQWjBvZwEB
SMTP -> get_lines(): $data is “”
SMTP -> get_lines(): $str is “334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==”
SERVER -> CLIENT: 334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
SMTP ERROR: AUTH command failed: 334 eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
SMTP Error: Could not authenticate.
CLIENT -> SERVER: QUIT
SMTP -> get_lines(): $data is “”
SMTP -> get_lines(): $str is “454 4.7.0 Too many login attempts, please try again later. i191sm6596344itf.13 – gsmtp”
SERVER -> CLIENT: 454 4.7.0 Too many login attempts, please try again later. i191sm6596344itf.13 – gsmtp
SMTP ERROR: QUIT command failed: 454 4.7.0 Too many login attempts, please try again later. i191sm6596344itf.13 – gsmtp
Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting