• Resolved kellymiller0710

    (@kellymiller0710)


    Since January, I have been struggling with WP Mail SMTP breaking and stops sending emails. I keep getting this error in my logs:

    Email Source: WP Mail SMTP Mailer: Google / Gmail { “error”: “invalid_grant”, “error_description”: “Token has been expired or revoked.” } Please re-grant Google app permissions! Go to WP Mail SMTP plugin settings page. Click the “Remove OAuth Connection” button. Then click the “Allow plugin to send emails using your Google account” button and re-enable access.

    I go back and redo the connection, it works for a week or so and then breaks again. Has anyone else had this issue? It was working fine for over 1.5 years. So frustrating.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @kellymiller0710,

    Thanks for reaching out, and I’m sorry to hear that you’re experiencing this issue.

    Usually when we see the Gmail mailer repeatedly disconnecting from WP Mail SMTP and displaying that error, it often means that your Google API app (see OAuth screen section) is in “Test mode” and needs to be changed to “Production” to resolve this issue.

    Please update the setting by going to Google’s API & Services > OAuth consent screen and set the Publishing status to Production. Don’t forget to save the changes.

    Next, go to the WP Mail SMTP > Settings page, and click on the “Remove Connection” button. Then click on the “Allow plugin to send emails using your Google account” button to re-enable access.

    Please give it a try and let us know how it goes. Thanks!

    Thread Starter kellymiller0710

    (@kellymiller0710)

    Hi Darshana,

    Thank you for your feedback. I did go back and make sure that the app was in Production mode. I went through the process to remove OAuth and then give consent. It worked for a week and then the same thing happened again. Token expired. Doesn’t make any sense.

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

The topic ‘WP Mail SMTP Google / Gmail { “error”: “invalid_grant”’ is closed to new replies.