• Resolved sagraphics

    (@sagraphics)


    Versions:
    WordPress: 4.9.23
    WordPress MS: No
    PHP: 5.6.40
    WP Mail SMTP: 1.4.1 Params:
    Mailer: gmail
    Constants: Yes
    Client ID/Secret: Yes
    Auth Code: Yes
    Access Token: Yes Server:
    OpenSSL: OpenSSL 1.0.2k-fips 26 Jan 2017
    PHP.allow_url_fopen: Yes
    PHP.stream_socket_client(): Yes
    PHP.fsockopen(): Yes
    PHP.curl_version(): 7.29.0 Debug:
    Mailer: Gmail
    {
    "error": "invalid_grant",
    "error_description": "Token has been expired or revoked."
    }
Viewing 1 replies (of 1 total)
  • Plugin Support Victoria Sakal

    (@sakalvictoria)

    Hi, @sagraphics!

    Thanks for reaching out!

    I apologize in advance, as this message is fairly long — but hopefully, it shares all the details you’ll need.

    The Google API connection may break from time to time if you are using the “Test” mode on your Google App. Please, check it. And if this is the case, publish your Google App (please, take a look at the screenshot). After, remove your existing Gmail connection under the WP Mail SMTP -> Settings page and reconnect again.

    Also please kindly know, that the OAuth token in Gmail will reset for any qualifying token revocation event, breaking the connection including but not limited to:

    – Changing the Google password
    – Enabling or disabling 2fa
    – Google account access reset
    – Activation of Google’s advanced protection program
    – Revocation of an 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 re-audit
    – Suspension of Google account
    – User requested a linked account unlinking
    – The user does not use the app for 6 months (automatically expires refresh token)
    – 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

    So, you’ll need to perform Authorization once more to address the issue to allow the plugin to send emails using the Google account by following described steps here.

    Kind regards.

Viewing 1 replies (of 1 total)

The topic ‘Error when sending test email’ is closed to new replies.