• Resolved makeiser

    (@makeiser)


    My SMTP email has been working great for almost a year and all of the sudden I’m confronted with this.

    EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v2.2.1 logged this error during the last time it tried to send an email:

    Mailer: 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”
    }
    }

    I kept trying to authenticate via my gmail console but kept getting the same error. I decided the best way to solve the issue was to deactivate the SMTP plugin and remove my project and credentials and start all over. I re-downloaded the plugin and all my information was still there. The plugin won’t even allow me enter a new email address in the “From Email” box. I tried to ignored the grayed out email section just assuming it is the correct email. Once I create a new project in the console and tried to authenticate all the fill boxes are total different than before. I’m not able to follow any of the youtubes videos that show you how to configured the SMTP into gmail console. I tried an email test as well and that doesn’t work either. It says — You cannot send an email. Mailer is not properly configured. Please check your settings. If there is some way to completely delete my old information on my plug it and start fresh I could fix the problem. Any help would be appreciated

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @makeiser,

    Thanks for reaching out and I apologize for the trouble with this. I’ve added a note to update the documentation as per the new changes. The error message though indicates that your Google account is still not connected. To remove all old information, you can go to WP Mail SMTP > Misc, check Uninstall WP Mail SMTP, and delete the plugin. You can then start from the beginning. Please let me know how it goes.

    Thanks!

    I’m getting the same error, I’m using PHP 7.4 and while connecting to my Gmail account it’s redirecting back to 404 page. Can you please help?

    Hi @teamshahrukhkhan,

    If you’re redirected to 404 pages after allowing access from Google, there’s probably a firewall like mod_security that is filtering out the requests from Google. You might need to contact your hosting provider to fix this.

    If you have any further questions, please create a new support post and do not continue on this unrelated thread.

    Thanks!

    Hi @makeiser – We haven’t heard from you in about a week, so I’m going to go ahead and mark this ticket resolved. If you still have questions, though, please feel welcome to continue the conversation.

    mikemwbs

    (@mikemwbs)

    Hello, I am new to WordPress and experiencing an issue similar to the one described above. I’ve followed the online instructions and also tried uninstalling/deleting the WebMailSMTP plugin with no luck. My hosting company wasn’t able to resolve the issue, so I thought I’d try this forum. The specific issue is described below. Many thanks in advance for any help finding a resolution.

    After following WebMailSMTP prompts for authorization (i.e., pressing the button: “Allow plugin to send emails using your Google account”) I am redirected to the Total Upkeep plugin and I see an error message that says “Unable to authorize Google Drive: unauthorized_client – Unauthorized”. Upon going back to my WebMail SMTP plugin, the following error message is displayed:

    Mailer: 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”
    }
    }

    I suspect there may be a conflict with the Total Upkeep’s attempt to access my Google Drive so I tried disconnecting Google Drive as a storage option and also re-updating/authorizing/configuring. Is there any way to test my suspicion or any other possible solutions to my problem?

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @mikemwbs,

    your site tried to send an email, but since your Gmail mailer is not yet authorized you get this error.

    So, this error will not be an issue once you connect/authorize with Google.

    If the “Total Upkeep” plugin is causing an issue, please try to deactivate it for a few minutes. When deactivated, please try to click on the “Allow plugin to send emails using your Google account” in the Gmail mailer settings in our plugin. After you complete the authorization, you can enable the “Total Upkeep” plugin again.

    Let me know how it goes.

    Take care!

    mikemwbs

    (@mikemwbs)

    Thank you @capuderg – your suggestion worked!

    Your help is much appreciated.

    Mike

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @mikemwbs,

    I’m glad you resolved your issue ??

    Have a nice day!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘EMAIL DELIVERY ERROR’ is closed to new replies.