Title: &#8220;error&#8221;: &#8220;invalid_grant&#8221;,
Last modified: September 27, 2019

---

# “error”: “invalid_grant”,

 *  Resolved [mubasher99](https://wordpress.org/support/users/mubasher99/)
 * (@mubasher99)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-invalid_grant-2/)
 * Hi there..!
    I am recieving the following error msg, dont know how to resolve
   it. please help me!
 * EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v1.6.2 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.” }

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-invalid_grant-2/#post-11981154)
 * Hi [@mubasher99](https://wordpress.org/support/users/mubasher99/),
 * This error usually indicates that there are permission issues due to the Secret
   Key (and all tokens that were generated using that key) being invalidated. This
   could happen when the Gmail password is changed or when 2FA is enabled.
 * To resolve this you’ll need to regenerate tokens by going to the console.developers.
   google.com > Credentials page. Click on the Edit screen for your credentials 
   and Reset Secret after that. Here’s the button you need to click: [http://take.ms/2EQIn](http://take.ms/2EQIn)
 * Alternatively, you can redo all the steps in our [documentation](https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/)
   to setup Gmail mailer again.
 * I hope this helps!
 *  Thread Starter [mubasher99](https://wordpress.org/support/users/mubasher99/)
 * (@mubasher99)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-invalid_grant-2/#post-11984576)
 * thanx for the help

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘“error”: “invalid_grant”,’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mubasher99](https://wordpress.org/support/users/mubasher99/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/error-invalid_grant-2/#post-11984576)
 * Status: resolved