views:

496

answers:

3

GMail can used as a SMTP server. I've written the code that does it. But as we all know GMail may occasionally authenticate using captcha (image verification as they call it). The same thing may be the cause to reject SMTP authentication.

As I've seen google shows image verification when you try to log-in for the first time from some machine. All consecutive log-ins from the same machine (to the same account) use regular login. I'm a bit afraid this captcha may also come up again for some other reasons that I can't control.

So. Is it possible to still authenticate when special measures are needed? And how?

I should also mention that logging in from the machine via web browser also enables programmatic SMTP authentication.

A: 

I've never seen the captcha come up for gmail. I've used Gmail's smtp just fine for years from both my Outlook connection as well as from my own code and servers that send out email notifications. Never been a problem for me.

Agent_9191
Ok. I understand you being very satisfied... But how does this answer my question?
Robert Koritnik
Essentially saying it's a situation you really don't have to worry about under normal usage.
Agent_9191
@Agent: That's not something I should remotely consider since it happened to me already. When I authenticated using web interface, app usage seemed to work as expected. But it's definitely not something that can easily be dismissed.
Robert Koritnik
+1  A: 

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!

Tim
For searches, at least, they'll throw up a captcha if anyone from your IP is acting like a robot, and you probably can't control who shares the IP you're behind. So it might not depend on anything you do.
Karl Anderson
+1  A: 

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.

benoror