• Resolved barthdesigns

    (@barthdesigns)


    Hi there,

    I saw older, now closed threads about this error message. I’ve set up WP Mail SMTP with my Google Workspace account about 2 weeks ago. I was calm and just noted by our clients that they did not receive any emails from our website (new account creation, order confirmation or so). I’ve checked SMTP settings and they were correct, emails dont come trough the site ??

    Can you please help me if there is a long term solution for not needing to redo the access again?

    Thanks!

    Heads up! The last email your site attempted to send was unsuccessful.

    Email Source: WP Mail Logging
    Mailer: Google / Gmail
    {
    "error": "invalid_grant",
    "error_description": "Token has been expired or revoked."
    }
    Please re-grant Google app permissions!
    Go to WP Mail SMTP plugin settings page. Click the “Remove OAuth Connection” button.
    Then click the “Allow plugin to send emails using your Google account” button and re-enable access.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter barthdesigns

    (@barthdesigns)

    PS: it’s been in live mode (not test), but I’ve changed email account password some days ago. I’ve gone ahead and redo the authentication process. Can I hope that it will not lose again (without pass change on email account)?

    Thank you!

    Plugin Support Darshana

    (@darshanaw)

    Hi @barthdesigns,

    Thanks for reaching out! There could be a number of reasons to break a Gmail mailer connection on a site. 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

    In such cases, you need to recreate the Gmail connection on your WordPress site.

    I hope this helps. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Token has been expired or revoked’ is closed to new replies.