A couple days ago, Mail stopped connecting automatically to my Gmail account. Upon trying to sign in, I enter my password and am met with a hung grey screen. It’ll sit there indefinitely.
So here is the solution:
On your Mac go to “Keychain Access” and on the top search for the problematic gmail address and delete that entry.