• Resolved josedgal

    (@josedgal)


    Versions:
    WordPress: 4.9.6
    WordPress MS: No
    PHP: 7.1.16
    WP Mail SMTP: 1.2.5

    Params:
    Mailer: gmail
    Constants: No
    Client ID/Secret: Yes
    Auth Code: Yes
    Access Token: Yes

    Server:
    OpenSSL: Yes
    PHP.allow_url_fopen: Yes
    PHP.stream_socket_client(): Yes
    PHP.fsockopen(): Yes
    PHP.curl_version(): Yes

    Debug:
    Error while sending via Gmail mailer: {
    “error”: “invalid_grant”,
    “error_description”: “Token has been expired or revoked.”
    }

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Tbm gostaria de saber o motivo desse erro e como arruma-lo!

    Plugin Author Slava Abakumov

    (@slaffik)

    @josedgal, @samuell306

    You need to regenerate tokens. Go to the console.developers.google.com > Credentials page. Click on the Edit screen for your credentials and Reset secret after that. Here is a button you need to click: https://take.ms/2EQIn

    This just happened to us. Can you tell me what caused it? I checked the secret between Google and the plugin and they were identical so it should have been working. Google wasn’t reporting any issues with the API either.

    Regenerating the secret and going through the auth steps worked, but for how long? It was all tested and working before, then made live and handed over to the client. The day after… this happened.

    It is very critical to make sure it works consistently for our client. If we know what the issue is, we might be able to avoid it happening again.

    Plugin Author Slava Abakumov

    (@slaffik)

    I don’t know the internal Google kitchen. What I know is that Secret Key (and all tokens that were generated using that key) is invalidated when you change the password or enable 2FA.

    Also, in the future upcoming WP Mail SMTP 1.3.0 we will have an admin-area notification system that will notify site admin about an error with email delivery.

    We didn’t change the password or enable 2FA, so there must have been another thing that happened. It would be good to know what it was for future reference though.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problems with grant acces’ is closed to new replies.