• Resolved Sean Lee

    (@slm2011)


    Hello, I’m using the GMail integration (GMail Suite – not personal) with the free plugin, and am now getting the following error from the plugin:

    EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v1.5.0 logged this error during the last time it tried to send an email:
    
    Mailer: Gmail
    {
    "error": {
    "errors": [
    {
    "domain": "global",
    "reason": "required",
    "message": "Login Required",
    "locationType": "header",
    "location": "Authorization"
    }
    ],
    "code": 401,
    "message": "Login Required"
    }
    }
    Consider running an email test after fixing it.

    Here’s how I have things configured on the GMail API side:
    domain is: mydomain.com and the actual WP instance (URL and Return path) is sub.mydomain.com.

    It all worked before. Also, I cannot send a test email, as it states “You cannot send an email. Mailer is not properly configured. Please check your settings.”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Sean Lee

    (@slm2011)

    So I fixed this… not sure why this fixed it, but I’ll share here in case somebody else runs into this, too.

    I went to the MISC settings tab in the plugin and chose to “Check this if you would like to remove ALL WP Mail SMTP data upon plugin deletion…”

    Then I disabled / uninstalled and then reinstalled the plugin. I also went back into Google API area and reset my Client Secret (kept the same Client ID), validated the redirect URI, and it worked. I can also send test emails now.

    Hi Sean,

    I’m sorry you ran into trouble with this, and thanks for sharing how you ended up getting things working!

    In case it helps others who run across this thread — Based on the error you shared, it sounds like you most likely needed to authorize WP Mail SMTP to connect to your Google account (this was an orange button that said “Allow plugin to send emails using your Google account”). This is unfortunately one of the things we see happen sometimes specifically with the Gmail mailer (for example, you may need to redo this step when after resetting your Google password).

    And in case it helps, your G Suite email should work just fine with the SendGrid or Mailgun mailers, too. I personally prefer either of these options over using Google’s API, and have used both with my own G Suite email address.

    Have a good one 🙂

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

The topic ‘Last update broke plugin’ is closed to new replies.