Title: Error After Testing Email
Last modified: September 1, 2016

---

# Error After Testing Email

 *  [Bolder Elements](https://wordpress.org/support/users/hystericallyme/)
 * (@hystericallyme)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-after-testing-email/)
 * I have been struggling to find a way to make email work on a locally hosted WordPress
   site. I set everything up here as per the instructions and sent out a test email
   which ultimately failed. I tried to send it out again, but instead of getting
   an error message about authentication (which is what I saw the first time) I 
   received this:
 * `Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Error 
   refreshing the OAuth2 token, message: '{ "error" : "invalid_request", "error_description":"
   Missing required parameter: refresh_token" }'' in /volume1/web/wordpress/wp-content/
   plugins/gmail-smtp/google-api-php-client/src/Google/Auth/OAuth2.php:363 Stack
   trace: #0 /volume1/web/wordpress/wp-content/plugins/gmail-smtp/google-api-php-
   client/src/Google/Auth/OAuth2.php(278): Google_Auth_OAuth2->refreshTokenRequest(
   Array) #1 /volume1/web/wordpress/wp-content/plugins/gmail-smtp/google-api-php-
   client/src/Google/Client.php(457): Google_Auth_OAuth2->refreshToken(NULL) #2 /
   volume1/web/wordpress/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.
   php(142): Google_Client->refreshToken(NULL) #3 /volume1/web/wordpress/wp-content/
   plugins/gmail-smtp/PHPMailer/class.smtp.php(446): GmailXOAuth2->getOauth64() #
   4 /volume1/web/wordpress/wp-content/plugins/gmail-smtp/class.phpmaileroauth.php(
   153): SMTP->authenticate('', '', 'XOAUTH2', '', '', Object(GmailXOAuth in /volume1/
   web/wordpress/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/
   Auth/OAuth2.php on line 363`
 * Do you have any idea why? I’ve tried the form multiple times but every time it
   ends in this fatal error 🙁
 * [https://wordpress.org/plugins/gmail-smtp/](https://wordpress.org/plugins/gmail-smtp/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Noor Alam](https://wordpress.org/support/users/naa986/)
 * (@naa986)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-after-testing-email/#post-7537237)
 * Hi, Please copy and paste the content from your “Server Info” tab so I can take
   a look.

Viewing 1 replies (of 1 total)

The topic ‘Error After Testing Email’ is closed to new replies.

 * ![](https://ps.w.org/gmail-smtp/assets/icon-128x128.png?rev=2432932)
 * [Gmail SMTP](https://wordpress.org/plugins/gmail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gmail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gmail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/gmail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gmail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gmail-smtp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Noor Alam](https://wordpress.org/support/users/naa986/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/error-after-testing-email/#post-7537237)
 * Status: not resolved