Gmail on IMAP not recognizing username/password

Hello, we’ve started having issues with setting up gmail’s imap service. It’s doing the same thing that Thunderbird 3 was and not recognizing username and/or password. Any workaround?

I have a gmail email but it works fine.

Try going to https://www.google.com/accounts/Displ… and entering the unlock captcha.