• Resolved david2007

    (@david2007)


    Gone through all the steps to setup WP Mail SMTP, however, whenever I try an Email Test, the following errors occur.

    Versions:
    WordPress: 4.9.1
    WordPress MS: No
    PHP: 5.5.38
    WP Mail SMTP: 1.2.2

    Params:
    Mailer: gmail
    Constants: No
    Client ID/Secret: Yes
    Auth Code: No
    Access Token: No

    Server:
    OpenSSL: Yes
    PHP.allow_url_fopen: Yes
    PHP.stream_socket_client(): Yes
    PHP.fsockopen(): Yes
    PHP.curl_version(): Yes

    Debug:
    Error while sending via Gmail mailer: {
    “error”: {
    “errors”: [
    {
    “domain”: “global”,
    “reason”: “required”,
    “message”: “Login Required”,
    “locationType”: “header”,
    “location”: “Authorization”
    }
    ],
    “code”: 401,
    “message”: “Login Required”
    }
    }

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    So, you have clicked the orange ‘Allow…’ button and saw a Google screen to allow sending emails for your app?
    What was next?

    Also, try this:
    Your FROM email address in plugin settings should be the same as the one you have used to create a Google App in Console with Gmail API to get Client ID/Secret.

    Thread Starter david2007

    (@david2007)

    Thanks for your response, however, I have not yet solved the problem. Yes,I have followed all the steps in the google dev and in WP Mail SMTP. The error I get is always the same. If this error is so common, which I have found out from the large number of other WP users that have had the same problem going back years, you would have thought that someone would have developed and easy fix by now.
    Someone suggested that I should check with my ISP to see if they have block port25 on the shared server. I am still waiting to here back from them. In the meantime,I and still trying lots of other things in an attempt to solve this problem.
    Thanks for your help,
    David.

    Try this.

    After you click on that orange button “Allow plugin to send emails using your Google account.” and you have verified successfully and that orange “Allow….” button is disappears, don’t click on save settings. Directly go to send a test email.

    Plugin Author Slava Abakumov

    (@slaffik)

    Oh.

    @naushad786
    Does that fixed this same issue for you? I’m surprised that people click Save after coming back from Google – there is just no reason to do that. I will test that scenario.

    Edit: confirmed.

    Yes, it took me 48 hrs to understand that. LOL.

    I was trying since last two days. And every time i click on Save Settings after “Allow”.

    No, Naushad and Slava that is not the problem. Even if we do not click the save settings button I am still getting the following error. The allow plugin to send email orange buttong simply refuses to go away

    Versions:
    WordPress: 4.9.5
    WordPress MS: No
    PHP: 5.6.35
    WP Mail SMTP: 1.2.5

    Params:
    Mailer: gmail
    Constants: No
    Client ID/Secret: Yes
    Auth Code: Yes
    Access Token: No

    Server:
    OpenSSL: Yes
    PHP.allow_url_fopen: Yes
    PHP.stream_socket_client(): Yes
    PHP.fsockopen(): Yes
    PHP.curl_version(): Yes
    Apache.mod_security: No

    Debug:
    Error while sending via Gmail mailer: {
    “error”: {
    “errors”: [
    {
    “domain”: “global”,
    “reason”: “required”,
    “message”: “Login Required”,
    “locationType”: “header”,
    “location”: “Authorization”
    }
    ],
    “code”: 401,
    “message”: “Login Required”
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem while sending a test email in WP Mail SMTP’ is closed to new replies.