• Resolved vicky81

    (@vicky81)


    Hi there,

    I have successfully installed the plugin and linked to gmail but I continue to get this error and I am unable to send a test email. I have tried uninstalling the plugin, clearing the cache and re-installing the plugin but this didn’t work. I have also tried ‘allowing’ the plugin to access my gmail account several times but it still hasn’t cured the problem. Any ideas you have would be very welcome!

    EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v1.8.1 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.

    Many thanks,

    Victoria

Viewing 9 replies - 1 through 9 (of 9 total)
  • Have the same error. Are you using Gmail API ?

    Hi @vicky81, @menasaka,

    It seems your google account is not linked for some reason. After you confirmed to the Google that you allow sending emails on your behalf, you should be redirected back to the plugin admin area. Do you have any issues/errors while on this process? Could you please create a screencast video of the steps?

    Thanks!

    Thread Starter vicky81

    (@vicky81)

    Hi Sanjeev,

    Thank you for your reply.

    I was indeed taken back to the admin page and it gave me the message that I had successfully allowed the sending of emails but I still get the error message above.

    I’m afraid I cannot do a screencast video as I have no idea how.

    To add another strange twist, when I asked our server support to look into it for me, they successfully synched the Google mail account and did not have any errors at all.

    At the moment I have had to roll back the site to an outdated version because of another issue.

    Many thanks,

    Vicky

    Hey Sanjeev Aryal,

    First of all I’m developer and used this method at least 40-50 times on different websites, on different hostings and with different versions. So I have experience of work with this plugin.

    here are my steps

    1. Installed plugin (used both 1.7.1 and 1.81 versions)
    2. Switched to gmail, go to google cloud, get key aND SECREt,
    3. fill this information in plugin,
    4. Click allow plugin
    5. pass authorization (before authorization I logged out from all other gmail accounts and logged in into the GMail account, that I used to get Google API )
    6. Get confirmation to do changes
    7. Redirected back to website
    8. Allow Plugin is still yellow (need to be red)
    9. Try to save settings, or sent test email – No success

    Used other Gmail accounts – No success
    Turned off all plugins – No success
    Switch back to WP’s default theme – No success

    Did all the same steps on another website (on the same hosting – Wpengine), with the same Google Account – Everything is FINE

    So that is something specific to this website. I didn’t have video, but I make screenshots of all steps, and to Darshana (support[at]wpmailsmtp). I can also CC you.

    Wpengine
    WP 5.3.1 (used previous version too)
    theme – Lawplus
    WPMail plugin the latest 1.8.1

    Fixed. I don’t know what happened, but it’s working now.

    Hi @menasaka,

    I apologize for the trouble. When you allow Google to send emails and get redirected, the auth code provided by Google is saved, maybe your site didn’t generate an access token for some reason.

    I’m glad you sorted it out.

    Have a good one!

    Hello,

    I am trying to fix this error I’m receiving regarding an email contact form on my WordPress website:

    MAIL DELIVERY ERROR: the plugin WP Mail SMTP v1.9.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”
    }
    ],

    When I try to run the test, I receive this notice: You cannot send an email. Mailer is not properly configured. Please check your settings.

    When I go to settings, I have the client ID, the secret key, and the redirect page URI all inserted.

    Question: for the mail
    “code”: 401,
    “message”: “Login Required”
    }
    }

    I’m not sure how these textboxes are to be completed. Perhaps that is the trouble? From Email, From Name, Force from Name, and Return Path.

    When I click on Authorization on the Settings page, I get this error–
    This app isn’t verified

    This app hasn’t been verified by Google yet. Only proceed if you know and trust the developer.

    If you’re the developer, submit a verification request to remove this screen. Learn more.

    Can you tell me what I am doing wrong?

    Thank you, Mona Kerby

    Hello,

    I am trying to fix this error I’m receiving regarding an email contact form on my WordPress website:

    MAIL DELIVERY ERROR: the plugin WP Mail SMTP v1.9.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”
    }
    ],

    When I try to run the test, I receive this notice: You cannot send an email. Mailer is not properly configured. Please check your settings.

    When I go to settings, I have the client ID, the secret key, and the redirect page URI all inserted.

    Question: for the mail
    “code”: 401,
    “message”: “Login Required”
    }
    }

    I’m not sure how these textboxes are to be completed. Perhaps that is the trouble? From Email, From Name, Force from Name, and Return Path.

    When I click on Authorization on the Settings page, I get this error–
    This app isn’t verified

    This app hasn’t been verified by Google yet. Only proceed if you know and trust the developer.

    If you’re the developer, submit a verification request to remove this screen. Learn more.

    Can you tell me what I am doing wrong?

    Thank you, Mona Kerby

    Hi @rkerby – Your issue is different and you’ll need to verify your app. If you have any further questions, please create a new support post as this thread is unrelated.

    Thanks!

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