Cannot set up gmail for IMAP or POP
At some point I became unable to access my gmail account in Thunderbird, I tried different settings, but nothing worked so I deleted the account from Thunderbird and tried to set it up fresh. I consistently get the error message "Username or password invalid" I have tried all the suggested fixes from gmails help pages, and fixes in this forum but nothing works. I have enabled "less secure apps". I get the same error trying to set the account up as POP as well. Username and password are correct BTW.
選ばれた解決策
Try to login to your Google account via webmail. There may be something Google wants/needs to confirm wrt your account.
この回答をすべて読む 👍 1すべての返信 (7)
When you did attempt to set up the account as an IMAP account, did you choose 'OAuth2' as 'Authentication method'?
Yes I did, I actually tried every type.
I'm attaching a screen shot of the settings.
Do you have any "exotic" characters in your email address or its password? Email protocols (POP, IMAP, SMTP) are quite restrictive, and characters that may be permissible in an http/https connection (as used in webmail) may not be allowed in email.
no just lower case letters, not even numbers.
選ばれた解決策
Try to login to your Google account via webmail. There may be something Google wants/needs to confirm wrt your account.
That was the problem, I solved it by using a different computer and when I tried to set up the IMAP account a pop-up window from google wanting me to sign in. Must have been a pop-up blocker on the other machine preventing the sign in window from opening. Note, just signing into gmail from a browser doesn't work, you need the pop-up dialog.
Thanks to all who replied.