Title: Gmail Setup error
Last modified: November 9, 2022

---

# Gmail Setup error

 *  Resolved [perciculum](https://wordpress.org/support/users/perciculum/)
 * (@perciculum)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/gmail-setup-error/)
 * Hey,
 * I tried to set up with Gmail and followed all the instructions until the end.
   
   But at the end I got “There was a problem while sending the test email.” message,
   if I try to send a test mail.
 * Error Log:
 *     ```
       Versions:
       WordPress: 6.1
       WordPress MS: No
       PHP: 7.4.33
       WP Mail SMTP: 3.6.1
   
       Params:
       Mailer: gmail
       Constants: No
       Client ID/Secret: Yes
       Auth Code: Yes
       Access Token: Yes
   
       Server:
       OpenSSL: OpenSSL 1.1.1p  21 Jun 2022
       PHP.allow_url_fopen: Yes
       PHP.stream_socket_client(): Yes
       PHP.fsockopen(): Yes
       PHP.curl_version(): 7.71.0
       Apache.mod_security: No
   
       Debug:
       Email Source: WP Mail SMTP
       Mailer: Google / Gmail
       {
         "error": {
           "code": 403,
           "message": "Gmail API has not been used in project 1065434684700 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=1065434684700 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
           "errors": [
             {
               "message": "Gmail API has not been used in project 1065434684700 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=1065434684700 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
               "domain": "usageLimits",
               "reason": "accessNotConfigured",
               "extendedHelp": "https://console.developers.google.com"
             }
           ],
           "status": "PERMISSION_DENIED",
           "details": [
             {
               "@type": "type.googleapis.com/google.rpc.Help",
               "links": [
                 {
                   "description": "Google developers console API activation",
                   "url": "https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=1065434684700"
                 }
               ]
             },
             {
               "@type": "type.googleapis.com/google.rpc.ErrorInfo",
               "reason": "SERVICE_DISABLED",
               "domain": "googleapis.com",
               "metadata": {
                 "service": "gmail.googleapis.com",
                 "consumer": "projects/1065434684700"
               }
             }
           ]
         }
       }
       Email Source: WP Mail SMTP
       Mailer: Google / Gmail
       {
         "error": {
           "code": 403,
           "message": "Gmail API has not been used in project 1065434684700 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=1065434684700 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
           "errors": [
             {
               "message": "Gmail API has not been used in project 1065434684700 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=1065434684700 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
               "domain": "usageLimits",
               "reason": "accessNotConfigured",
               "extendedHelp": "https://console.developers.google.com"
             }
           ],
           "status": "PERMISSION_DENIED",
           "details": [
             {
               "@type": "type.googleapis.com/google.rpc.Help",
               "links": [
                 {
                   "description": "Google developers console API activation",
                   "url": "https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=1065434684700"
                 }
               ]
             },
             {
               "@type": "type.googleapis.com/google.rpc.ErrorInfo",
               "reason": "SERVICE_DISABLED",
               "domain": "googleapis.com",
               "metadata": {
                 "consumer": "projects/1065434684700",
                 "service": "gmail.googleapis.com"
               }
             }
           ]
         }
       }
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgmail-setup-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Darshana](https://wordpress.org/support/users/darshanaw/)
 * (@darshanaw)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/gmail-setup-error/#post-16190738)
 * Hi [@perciculum](https://wordpress.org/support/users/perciculum/),
 * Thanks for reaching out!
 * According to the error message that you shared, could you please enable your 
   API by visiting [this link](https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=1065434684700),
   and then try sending a test email (**WP Mail SMTP -> Tools**).
 * In case it helps, try following [this screencast](https://a.supportally.com/ohkM5I),
   and you should be able to configure it accordingly.
 * Also, we have detailed documentation on how to configure the [Gmail mailer](https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/).
 * I hope this helps. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Gmail Setup 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

 * [gmail](https://wordpress.org/support/topic-tag/gmail/)
 * [test mail](https://wordpress.org/support/topic-tag/test-mail/)

 * 1 reply
 * 2 participants
 * Last reply from: [Darshana](https://wordpress.org/support/users/darshanaw/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/gmail-setup-error/#post-16190738)
 * Status: resolved