Hi there @imokweb,
Someone just asked a similar question about Gmail in a different thread. The most common cause of the issue is a misconfigured setting in the Google Console.
Typically when this happens, it means that your Google API app (OAuth screen section: https://a.supportally.com/HMVXQm) is in the “Test mode” and needs to be changed to “Production” to resolve this issue.
Can you please look into adjusting this setting in Google’s API & Services > OAuth consent screen > Publishing status area and see if it resolves this issue for you?
– Other Causes for Gmail Disconnections
The OAuth token in Gmail will reset for any event breaking the connection, including but not limited to:
- Changing Google password
- Enabling or disabling 2FA
- Google account access reset
- Activation of Google advanced protection program
- Revocation of the app to profile
- App OAuth permission revoked by Google
- App moved from public mode to private/internal mode by Google (or by a user whose user domain is not in the allowed org domain zone)
- App verification failure on reaudit
- Suspension of Google account
- User requested linked account unlinking
- The user does not use the app for 6 months (automatically expires refresh token)
- The user adds/removes sensitive or needs review scopes to the app but does not complete the app review process
- If the user is at the maximum limit for OAuth tokens to a Google profile (50) or for the service (25 for example in analytics), activation of a new refresh key will also automatically revoke the earliest key
To resolve the issue, please head over to the WP Mail SMTP > Settings page, and click on the “Remove Connection” button. Then click on the “Allow plugin to send emails using your Google account” button to re-enable access.
I know that this issue can be very frustrating to deal with, and I’m sorry again that you’re experiencing it, but I do hope this helps.
I hope that helps! Have a great day!