Why am I getting "Web Login Required" message while connecting to Gmail via IMAP?

Andy Hin picture Andy Hin · Aug 29, 2014 · Viewed 7.5k times · Source

I'm trying to connect and retrieve a list of message headers from Gmail via IMAP.

I'm getting a response from Google with "Web Login Required" and then a URL to continue the sign-in via the web interface. Log: http://hastebin.com/odufaducew.vhdl

Why does this happen? How to handle this case? I'm using the MailCore2 lib for iOS if that helps at all.

Answer

araks picture araks · Jan 22, 2015

You can enable access for less secure apps in this page Google - Less secure apps

Choose enable and try again!