views:

342

answers:

1

This is a pure Google Mail question. I am accessing Google Mail via Perl's Net::SMTP::SSL module. From time to time the authentication fails not because of a bad password, but because of some additional password check. The only way to unlock it is via the web interface with an additional entry of text presented as an image. Has anyone seen a similar issue and knows a fix. I looked at the Google forums, but did not find anything.

+1  A: 

You are having this problem because the method you are using to access Gmail is not supported by Google and I am fairly sure it is a violation of their TOS (see 5.3). If you wish to access Gmail from inside of a program I would suggest using either its IMAP or POP3 interface with the appropriate Perl module.

Since you seem to be sending mail, you should use their SMTP interface with one of Perl's SMTP modules. You may find Google's information about setting up IMAP clients helpful.

Chas. Owens
Sorry for not being clear - but I am only sending and not receiving mail at the moment.
weismat
To clarify Chas's update, try using Net::SMTP::TLS instead of Net::SMTP::SSL.
cjm