Who is your eMail provider & ISP?
Mail and Google's OAuth 2.0 policy
Mail and Google's OAuth 2.0 policy - Apple Community
Fix…
https://code2care.org/macos/fix-mail-authorization-error-400-invalid-request/
Mac's Mail App is not as modern as iOS's Mail app, Many eMail providers now require a separate App Password different from your eMail password…
If it's an IMAP account, delete it in Sys Prefs Internet Accounts then use "Other" instead of gMail choice to add it.
Most likely biggest factor is using Other in Mail setup, then using a Browser that doesn’t have gMail PW stored init to get the App PW.
https://discussions.apple.com/thread/255332568?answerId=259925986022&sortBy=oldest_first#259925986022
Thanks to Bob Sabiston…
iMac says Connection Insecure. Failed to … - Apple Community
Thanks to Webmb…
Sonoma can’t connect to gMail…
I'm no longer receiving mails on my iMac … - Apple Community
GC mac
User level:
Level 1
4 points
Nov 1, 2023 10:12 PM in response to Maggiellv
I also spent hours trying to solve this issue until I followed this video... It worked and my Gmail accounts are back on Mac Mail.
Give it a shot and good luck! https://www.youtube.com/watch?v=U0WPw2TsTAY
It might just need an App Password separate from the gMail password…
The process to add a gmail account to my … - Apple Community
https://support.google.com/a/answer/9003945?hl=en#apple-mail&zippy=%2Cset-up-gmail-with-mail-on-a-mac
Can't add a Gmail account to Apple Mail - Apple Community