• Resolved suzakudev

    (@suzakudev)


    Hi, I have several sites that are using WP Mail SMTP with the same g-mail account. Today we noticed one site could not sent email and it had below error. Then, I re-added the connection and it worked back. I would like to know why this was happened. Thank you.

    Email source: WPForms
    Mailer: Google / Gmail
    {
    "error": {
    "code": 401,
    "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project." ,
    "errors": [
    {
    "message": "Login Required.",
    "domain": "global",
    "reason": "required",
    "location": "Authorization",
    "locationType": "header"
    }
    ],
    "status": "UNAUTHENTICATED",
    "details": [
    {
    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
    "reason": "CREDENTIALS_MISSING",
    "domain": "googleapis.com",
    "metadata": {
    "method": "caribou.api.proto.MailboxService.SendMessage",
    "service": "gmail.googleapis.com"
    }
    }
    ]
    }
    }
    For more details please try running an Email Test or reading the latest error event .
    • This topic was modified 9 months, 2 weeks ago by suzakudev.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @suzakudev,

    Thanks for reaching out! First of all, please make sure that you’re using the the latest version of the WP Mail SMTP plugin on that site.

    After that, try configuring the Google mailer again on that site by following this video guide.

    In case you are encountering the same error, you may need to deactivate your third-party plugins to see if you are experiencing a plugin conflict.

    I hope this helps. Thanks!

    Thread Starter suzakudev

    (@suzakudev)

    Hi, Thank you for your reply,
    Plugin version was the not latest one. Now, I’ve enabled auto update for it.
    Yes, I made reconnection again and it worked back.
    I have three similar websites that have same plugins, and other two are still being connected.
    Please let me what kind of plugin have the possibility of conflicting?
    like the plugin that use G-mail API for example?

    Plugin Support Darshana

    (@darshanaw)

    Hi @suzakudev,

    Most probably your Google app is not published, so it will disconnect automatically after one week.

    Within your Google Console project, head over to the OAuth Consent screen section, and then publish your app.

    Then, recreate your Gmail mailer connection again by head over to the WP Mail SMTP -> Settings area and it should work.

    I hope this helps. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gmail Oauth connection disconnected only in one site’ is closed to new replies.