How to use GMail as a free SMTP server and overcome captcha

不打扰是莪最后的温柔 提交于 2019-11-27 20:52:08

Google doesn't seem to be particularly clear about what prompts them to block a user's account until he has successfully entered a captcha phrase. However, it's likely that this is a mechanism which is triggered when Google sees what it considers to be unusual or suspicious activity associated with your account. As a result, I would expect it to be unlikely that they will supply an option to opt out of a mechanism which is protecting both them and you, although others are welcome to find evidence to the contrary.

Various discussions of when and how this happens throw up some suggestions which you might like to try to see if they help, such as choosing a stronger password or simply changing your password. Good luck!

Try:

http://www.google.com/accounts/DisplayUnlockCaptcha

Or for Google Apps for your domain:

https://www.google.com/a/yourdomain.com/UnlockCaptcha

I can bet it's an IP based solution, so if your app if deployed somewhere else, It doesn't help.

laconbass

IMHO The right way to do this, without implementing the user consent workflow or "hacking your account's security settings", is obtaining a refresh token with the Google OAuth2.0 Playground for Offline Access. After that, you can authenticate using the OAuth 2.0 API.

I got it working after reading Nodemailer/Gmail - What exactly is a refresh token and how do I get one?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!