Skip to content

Instantly share code, notes, and snippets.

@kirilkirkov
Created April 13, 2016 13:41
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save kirilkirkov/9a6ac60c2e35caca1e5eb75dfe33a153 to your computer and use it in GitHub Desktop.
Save kirilkirkov/9a6ac60c2e35caca1e5eb75dfe33a153 to your computer and use it in GitHub Desktop.
Cannot connect to Mail: Can not authenticate to IMAP server: [ALERT] Please log in via your web browser: https://support.google.com/mail/acco
Error when try access gmail from php imap solution:
Login to your gmail account, enable imap.
Let the access here first: https://www.google.com/settings/security/lesssecureapps
Go to: https://accounts.google.com/b/0/DisplayUnlockCaptcha and enable access.
@alkhachatryan
Copy link

Go to: https://accounts.google.com/b/0/DisplayUnlockCaptcha and enable access.

I could not find this shit! Only here I found the answer.

@marechenok
Copy link

If you have muliple accounts logged in than link
https://accounts.google.com/b/0/DisplayUnlockCaptcha
will enable access only to first account. For others you need to check links like:
https://accounts.google.com/b/1/DisplayUnlockCaptcha
https://accounts.google.com/b/2/DisplayUnlockCaptcha
& etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment