Title: email dilvery error
Last modified: November 6, 2019

---

# email dilvery error

 *  Resolved [nutrition2change](https://wordpress.org/support/users/nutrition2change/)
 * (@nutrition2change)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/email-dilvery-error/)
 * Hello,
 * I have had the SMTP mail plugin for a couple months now but I just received a
   random error today saying ‘MAIL DELIVERY ERROR: the plugin WP Mail SMTP v1.7.0
   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.”}
 * But when I go over to the plugin it shows as working fine. I dont know whats 
   wrong or what does this mean?
 * Please help. Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Femail-dilvery-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/email-dilvery-error/#post-12110057)
 * Hi [@nutrition2change](https://wordpress.org/support/users/nutrition2change/),
 * The Invalid Grant 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 go through all the steps in our setup [tutorial](https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/)
   again.
 * I hope this helps!
 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/email-dilvery-error/#post-12144789)
 * Hi [@nutrition2change](https://wordpress.org/support/users/nutrition2change/)–
   We haven’t heard from you in about a week, so I’m going to go ahead and mark 
   this ticket resolved. If you still have questions, though, please feel welcome
   to continue the conversation.

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

The topic ‘email dilvery error’ 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/)

## Tags

 * [EMAIL DELIVERY ERROR](https://wordpress.org/support/topic-tag/email-delivery-error/)

 * 2 replies
 * 1 participant
 * Last reply from: [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/email-dilvery-error/#post-12144789)
 * Status: resolved