• Resolved D

    (@clocksaysnow)


    Hi,

    The Gmail SMTP plugin is generating the following fatal-error message when I test it at Gmail SMTP plugin>Settings>Test email:

    Fatal error: Uncaught exception ‘Google_Auth_Exception’ with message ‘Error refreshing the OAuth2 token, message: ‘{ “error” : “invalid_grant” }”

    I get the same fatal-error message when I go to the contact form on my website (https://painopolis.com/contact-us/) and try to send a message. I installed the Gmail SMTP plugin a year ago, and it’s been working perfectly until recently. I’m using the most recent version of the plugin. I’m also using the most recent version of WordPress.

    Do you know what might be causing this problem—and how I can fix it?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter D

    (@clocksaysnow)

    Hi, me again. Disregard that previous request for help. I found the solution at your website here:

    https://wphowto.net/gmail-smtp-plugin-for-wordpress-1341/46

    Under this section:

    Error refreshing the OAuth2 token

    When I went to Google Console, I also noticed that my domain needed to be verified—which is weird, since the Gmail SMTP plugin has been working fine on my domain for the last year. I’m not sure if Google somehow lost the verification of my domain or if this is a new requirement from Google. So I verified my domain. And I also saw that Google now wants a privacy-policy URL added to the Credentials>OAuth consent screen (“Optional until you deploy your app,” says Google), so I added my privacy policy’s URL. Now the email seems to be working again.

    Thanks for including those troubleshooting instructions on your website.

Viewing 1 replies (of 1 total)
  • The topic ‘Gmail SMTP is generating a fatal-error message’ is closed to new replies.