Title: Google / Gmail { “error”: “invalid_grant”
Last modified: January 21, 2026

---

# Google / Gmail { “error”: “invalid_grant”

 *  Resolved [Alex](https://wordpress.org/support/users/alexanderkoch096/)
 * (@alexanderkoch096)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/google-gmail-error-invalid_grant/)
 * Hi there,
 * I’m referencing a related issue:
   https://wordpress.org/support/topic/wp-mail-
   smtp-google-gmail-error-invalid_grant/
 * I followed the same steps that [@darshanaw](https://wordpress.org/support/users/darshanaw/)
   suggested, and the re-connection does work — but only for a while.
 * I also checked **Google’s API & Services → OAuth consent screen** and set the**
   Publishing status** to **Production** (it is currently “In Production”):
   https://
   imgur.com/a/GnlGdK7
 * After some time, the issue appears again and the sending process fails:
   https://
   imgur.com/a/0e9PIP3
 * Do you have any idea why the Gmail configuration is currently so unstable?
 * Thanks in advance for your help.
 * Best regards,
   Alex

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Shawon Chowdhury](https://wordpress.org/support/users/shawon001/)
 * (@shawon001)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/google-gmail-error-invalid_grant/#post-18794117)
 * Hi [@alexanderkoch096](https://wordpress.org/support/users/alexanderkoch096/),
   
   Thanks for reaching out, and I am so sorry to hear about the trouble.
 * As your API & Services status is **published** already, the OAuth token in Gmail
   will reset for any event breaking the connection, including but not limited to:
    1.  Changing Google password
    2.  Enabling or disabling 2FA
    3.  Google account access reset
    4.  Activation of Google advanced protection program
    5.  Revocation of the app to profile
    6.  App OAuth permission revoked by Google
    7.  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)
    8.  App verification failure on reaudit
    9.  Suspension of Google account
    10. User requested linked account unlinking
    11. The user does not use the app for 6 months (automatically expires refresh token)
    12. The user adds/removes sensitive or needs review scopes to the app but does 
        not complete the app review process
    13. 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
 * Once you can make sure that none of these from the above list is happening, the
   last step is to 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.
   Hope this helps.
   Thanks 🙂
 *  Thread Starter [Alex](https://wordpress.org/support/users/alexanderkoch096/)
 * (@alexanderkoch096)
 * [4 months, 2 weeks ago](https://wordpress.org/support/topic/google-gmail-error-invalid_grant/#post-18794465)
 * Hi [@shawon001](https://wordpress.org/support/users/shawon001/) ,
 * thanks for your reply. Ok I think this will answer the question, why the connection
   was breaking. I changed my Google password time ago.
 * Best regards,
   Alex

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-gmail-error-invalid_grant%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/alexanderkoch096/)
 * Last activity: [4 months, 2 weeks ago](https://wordpress.org/support/topic/google-gmail-error-invalid_grant/#post-18794465)
 * Status: resolved