• Resolved johnfrl_15

    (@johnfrl_15)


    Hi,

    using your plugin, for a good number of years now it has been working successfully sending mail via Office 365 but recently (in fact this goes back to Nov last year on a low traffic site so I haven’t noticed) it now gives an error of SMTP Error: Could not authenticate.

    All details are 100% correct. ‘Authenticated SMTP’ under User > Mail > Manage email apps is already checked. This is happening on multiple sites after checking. This particular one has two factor authentication set so I tried using the app password instead but same error. The other sites without two factor give the same error.

    The log is:

    Versions:
    WordPress: 5.9
    WordPress MS: No
    PHP: 7.3.33
    WP Mail SMTP: 3.2.1
    
    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not authenticate.
    Host: smtp.office365.com
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)
    
    Server:
    OpenSSL: OpenSSL 1.1.1l FIPS 24 Aug 2021
    
    Debug:
    Email Source: WP Mail SMTP
    Mailer: Other SMTP
    SMTP Error: Could not authenticate.
    
    SMTP Debug:
    2022-01-27 18:14:13 Connection: opening to smtp.office365.com:587, timeout=300, options=array()
    
    2022-01-27 18:14:13 Connection: opened
    
    2022-01-27 18:14:13 SERVER -> CLIENT: 220 LO2P265CA0329.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 27 Jan 2022 18:14:13 +0000
    
    2022-01-27 18:14:13 CLIENT -> SERVER: EHLO sound-of-faz.com
    
    2022-01-27 18:14:13 SERVER -> CLIENT: 250-LO2P265CA0329.outlook.office365.com Hello [35.214.11.101]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
    
    2022-01-27 18:14:13 CLIENT -> SERVER: STARTTLS
    
    2022-01-27 18:14:13 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
    
    2022-01-27 18:14:13 CLIENT -> SERVER: EHLO sound-of-faz.com
    
    2022-01-27 18:14:13 SERVER -> CLIENT: 250-LO2P265CA0329.outlook.office365.com Hello [35.214.11.101]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
    
    2022-01-27 18:14:13 CLIENT -> SERVER: AUTH LOGIN
    
    2022-01-27 18:14:13 SERVER -> CLIENT: 334 VXNlcm5hbWU6
    
    2022-01-27 18:14:13 CLIENT -> SERVER: [credentials hidden]
    
    2022-01-27 18:14:13 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
    
    2022-01-27 18:14:13 CLIENT -> SERVER: [credentials hidden]
    
    2022-01-27 18:14:19 SERVER -> CLIENT: 535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator. [LO2P265CA0329.GBRP265.PROD.OUTLOOK.COM]
    
    2022-01-27 18:14:19 SMTP ERROR: Password command failed: 535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator. [LO2P265CA0329.GBRP265.PROD.OUTLOOK.COM]
    
    SMTP Error: Could not authenticate.
    
    2022-01-27 18:14:19 CLIENT -> SERVER: QUIT
    
    2022-01-27 18:14:19 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
    
    2022-01-27 18:14:19 Connection: closed
    
    SMTP Error: Could not authenticate.

    I have read all other threads which suggest doing what I’ve already tried above so am a bit of a loss.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Versions:
    WordPress: 5.9
    WordPress MS: No
    PHP: 7.3.33
    WP Mail SMTP: 3.2.1

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

    Server:
    OpenSSL: OpenSSL 1.1.1d 10 Sep 2019
    PHP.allow_url_fopen: Yes
    PHP.stream_socket_client(): Yes
    PHP.fsockopen(): Yes
    PHP.curl_version(): 7.71.0
    Apache.mod_security: No

    Debug:
    Email Source: WP Mail SMTP
    Mailer: Google / Gmail
    {
    “error”: {
    “code”: 403,
    “message”: “Gmail API has not been used in project 724048571180 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=724048571180 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.”,
    “errors”: [
    {
    “message”: “Gmail API has not been used in project 724048571180 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=724048571180 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.”,
    “domain”: “usageLimits”,
    “reason”: “accessNotConfigured”,
    “extendedHelp”: “https://console.developers.google.com”
    }
    ],
    “status”: “PERMISSION_DENIED”,
    “details”: [
    {
    “@type”: “type.googleapis.com/google.rpc.Help”,
    “links”: [
    {
    “description”: “Google developers console API activation”,
    “url”: “https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=724048571180”
    }
    ]
    },
    {
    “@type”: “type.googleapis.com/google.rpc.ErrorInfo”,
    “reason”: “SERVICE_DISABLED”,
    “domain”: “googleapis.com”,
    “metadata”: {
    “service”: “gmail.googleapis.com”,
    “consumer”: “projects/724048571180”
    }
    }
    ]
    }
    }

    Plugin Support David

    (@dpinson)

    Hi @johnfrl_15,

    The error indicates that there is an issue with your mail account. You mentioned that the login information is correct, but Microsoft is not allowing the login credentials to authenticate. The best thing to do here is to reach out to Microsoft’s support so they can look into the account and find out why their system keeps denying the login credentials.

    I hope that helps!

    Have a good one! ??

    Plugin Support David

    (@dpinson)

    Hi @hemjey12,

    Please enable your API by visiting this link and then recreate your Gmail mailer connection by heading over to the WP Mail SMTP -> Settings page.

    After that, try sending a test email (WP Mail SMTP -> Tools) and see if you have configured it properly.

    I hope that helps! If you have any additional questions, please create a new thread and we’ll be happy to help you there. That helps keep things organized, as the issue you’re running into is different. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SMTP Error: Could not authenticate.’ is closed to new replies.