Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 479
Andy Hin Avatar asked Aug 29 '14 14:08

Andy Hin


1 Answers

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

Choose enable and try again!

like image 96
araks Avatar answered Nov 15 '22 15:11

araks