I use java mail API in selenium automation script to verify email confirmations. The scripts will be executed by different team members. I got this error, when someone tries to run from other IP address.

Web login required: https://support.google.com/mail/answer/78754

while using "pop3" protocol and

Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)

while using imaps protocol

You should allow access from untrusted clients in your Google account settings. Find the details by the link you have provided in your question.

  • 1) lesssecureapps-> Turned on 2) Never show an alert for unusual activity->Turned ON 3) 2-Step Verification-> OFF 4)POP -> Enabled for all mail 5) IMAP ->Enabled But still i am facing this issue. – STE Nov 10 at 16:47

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.