• Resolved Tahoerock

    (@tahoerock)


    Hello my friends,
    need some help with this error.
    My client called me that his customer placed order and it did not get through.
    My client tried to place same order for customer and no-one did not get any email.
    I logged in and there is this ERROR:

    EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v1.4.1 logged this error during the last time it tried to send an email:
    Mailer: Gmail
    {
      "error": "invalid_grant",
      "error_description": "Token has been expired or revoked."
    }
    Please review your WP Mail SMTP settings in plugin admin area. Consider running an email test after fixing it.

    I think I would have to do same as it is written in this thread:
    https://www.ads-software.com/support/topic/email-delivery-error-wp-mail-smtp-plugin-logged-this-error-during-the-last-time/

    This notice is shown to you because last email delivery failed. Actually, exactly like it’s written in its text.

    Make sure that the used Client ID/Secret correspond to a proper project that has Gmail API enabled.
    Try to use a separate project for your emails, so the project has only 1 Gmail API in it enabled. You will need to remove the old project and create a new one from scratch.
    You should go to https://console.developers.google.com to check your project and Secret ID/Secret.
    You should go to https://admin.google.com to be sure that Gmail app is activated and check there all the settings (if you are using G Suite).

    Is it needed to update Google’s Client ID/Secret let say Yearly or it is some other issue that Client ID/Secret stopped working???

    I want to be sure, before I do something.
    Thanks for help.
    Cheers
    Vlad

    • This topic was modified 6 years, 1 month ago by Tahoerock.
    • This topic was modified 6 years, 1 month ago by Tahoerock.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    Hi,

    Client ID/Secret should be not updated. The Google library that we use to generate and update tokens (both auth and refresh used to regenerate auth) should take care of that issue by itself.
    If it’s failed:

    > Please review your WP Mail SMTP settings in plugin admin area.

    So basically go to WP Mail SMTP plugin admin area and click “Allow…” button at the botton of the page, it will regenerate the tokens and everything should be fine. You should see “Remove Connection” button after that.

    I don’t know why it failed, most likely due to some coincidence of plugin work and server behavior. I can’t guarantee that this won’t happen in the future as I don’t know the reason (yet).

    Thread Starter Tahoerock

    (@tahoerock)

    Hello Slava,
    It is solved. My client changed password for Google account.
    Thanks a lot
    Cheers
    Vlad

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My client did not get email.’ is closed to new replies.