smtp,

How to fix Gmail SMTP's 'Please log in via your web browser and then try again'

Jan 26, 2022 · 1 min read · Post a comment

SMTP configuration has always been an annoying task, especially for the inexperienced engineers. Needless to say, setting up mail server from scratch is a whole other beast. Today’s focus is resolving Gmail SMTP’s Please log in via your web browser and then try again error.

Prerequisites

  • Google account

Solution(s)

Step 1. Enable Access for less secure apps by following the official guide: https://www.google.com/settings/security/lesssecureapps.

Step 2. Authorize access for your hosted application server, by visiting the following link:
https://accounts.google.com/DisplayUnlockCaptcha.

Step 3 (Optional). Last but not least, if both steps above (1, 2) doesn’t work for you, update your password.

Conclusion

Probably a bias opinion, but SMTP-wise I prefer self-hosted solution or SendGrid over Google. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.