Title: Google API Error
Last modified: October 14, 2024

---

# Google API Error

 *  Resolved [criticaleye777](https://wordpress.org/support/users/criticaleye777/)
 * (@criticaleye777)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/google-api-error-9/)
 * I continue getting Google API error and I have gone through the guide and set
   up video multiple times.
 * **Versions:**
   **WordPress:** 6.6.2**WordPress MS:** No**PHP:** 8.1.22**WP Mail
   SMTP:** 4.1.1
 * **Params:**
   **Mailer:** gmail**Constants:** No**Client ID/Secret:** Yes**Auth
   Code:** Yes**Access Token:** Yes
 * **Server:**
   **OpenSSL:** OpenSSL 3.1.2 1 Aug 2023**PHP.allow_url_fopen:** Yes**
   PHP.stream_socket_client():** Yes**PHP.fsockopen():** Yes**PHP.curl_version():**
   8.5.0
 * **Debug:**
   Email Source: WP Mail SMTP Mailer: Google / Gmail { “error”: { “code”:
   400, “message”: “Mail service not enabled”, “errors”: [ { “message”: “Mail service
   not enabled”, “domain”: “global”, “reason”: “failedPrecondition” } ], “status”:“
   FAILED_PRECONDITION” } }

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

 *  Plugin Support [Darshana](https://wordpress.org/support/users/darshanaw/)
 * (@darshanaw)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/google-api-error-9/#post-18074763)
 * Hi [@criticaleye777](https://wordpress.org/support/users/criticaleye777/),
 * Thank you for reaching out, and I apologize for any inconvenience you’re experiencing.
 * Please be aware that this error message is originating from Google and can occur
   for several reasons:
    1. **Trial Period Expiration**: Your Google Workspace account’s trial period might
       have expired (if applicable). You can verify this by checking your account status
       at [admin.google.com](https://admin.google.com/).
    2. **Email Account Issues**: Your email address might not be a Google email account.
       It could be a Google Account without email functionality (e.g., used for YouTube
       but never enabled for Gmail). You may need to enable the Gmail feature or Gmail
       API access in your G Suite.
 * If these steps do not resolve the issue, please contact Google Workspace support
   with the error message. They should be able to enable any missing features or
   services for you.
 * Once they have confirmed the resolution, try setting up the Google mailer connection
   again on your site through **WP Mail SMTP -> Settings** page.
 * I hope this helps. Thanks!
 *  Thread Starter [criticaleye777](https://wordpress.org/support/users/criticaleye777/)
 * (@criticaleye777)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/google-api-error-9/#post-18075429)
 * I had to go with SMTP Other instead of selecting Google and was able to get it
   to work.

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

The topic ‘Google API 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [criticaleye777](https://wordpress.org/support/users/criticaleye777/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/google-api-error-9/#post-18075429)
 * Status: resolved