XF 2.2 Failed to authenticate on SMTP server with Google Suite email

MTBeros

Member
Hi there,

Yesterday, I migrated my email from OVH to Google Suite. Then, I must change the email settings Email method transport on Xenforo Admin but it's not working after trying different times. I add my IMAP configuration, after enable it on my Gmail Account Settings but it's still not working:

Swift_TransportException: Email to XXXXXXXXXXX@hotmail.com failed: Failed to authenticate on SMTP server with username "contacto@mtberos.com" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials o7sm6604385wrs.16 - gsmtp ". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials o7sm6604385wrs.16 - gsmtp ". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials o7sm6604385wrs.16 - gsmtp ".
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php:191
Can you help me, please?

I know Google Suite has a lower limit of daily emails, but it's not a problem for the moment.

Thank you!
 
I had the same issue as the OP. I'm on 2.2.17. Enabling two-factor authentication in the Google account, and then setting up and entering an app password into XF, has solved the problem.

I much appreciate the solution, and just wanted to confirm that it works, in case this problem crops up for anyone else.

Just started happening all of the sudden a couple of days ago when the forum sent out e-mails. Hadn't changed anything on my side, so it must have been initiated by a Google rule change to increase security.
 
Back
Top Bottom