• Resolved perciculum

    (@perciculum)


    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 to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @perciculum,

    Thanks for reaching out!

    According to the error message that you shared, could you please enable your API by visiting this link, and then try sending a test email (WP Mail SMTP -> Tools).

    In case it helps, try following this screencast, and you should be able to configure it accordingly.

    Also, we have detailed documentation on how to configure the Gmail mailer.

    I hope this helps. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Gmail Setup error’ is closed to new replies.