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

1 Answer 1


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
    Commented Nov 10, 2018 at 16:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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