• Resolved ragnarm

    (@ragnarm)


    Hi

    I have been using the smtp plugin for some months now and it always worked but now suddenly it stopped working and test email gives me this error:

    Versions:
    WordPress: 4.9.8
    WordPress MS: No
    PHP: 7.0.32
    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
    Apache.mod_security: No

    Debug:
    Error while sending via Gmail mailer: {
    “error”: “invalid_grant”,
    “error_description”: “Bad Request”
    }

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • cassandravizisites

    (@cassandravizisites)

    I’m having this same error.

    Plugin Author Slava Abakumov

    (@slaffik)

    @ragnarm

    Were Google security settings changed recently?
    Have you tried to remove the connection and add it again?

    Plugin Author Slava Abakumov

    (@slaffik)

    invalid_grant: bad request

    Leaving this for future reference.

    Normally means that the Client ID and Client Secret you are using to refresh the access token were not the ones that were used to create the refresh token you are using. Basically, you created the connection, then changed Client ID/Secret but old refresh token was left. Most likely this happens when migrating a database from local to live, or to a client etc.

    Remove the current connection and try to authenticate again to get a new refresh token. This should fix the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sending error’ is closed to new replies.