• Resolved Jay

    (@jaytfl)


    Versions:
    WordPress: 6.5.2
    WordPress MS: No
    PHP: 8.3.3-1+ubuntu20.04.1+deb.sury.org+1
    Easy WP SMTP: 2.3.0

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server Additional SMTP info: php_network_getaddresses: getaddrinfo for smtp.office365.com failed: Temporary failure in name resolution
    Host: smtp.office365.com
    Port: 587
    SMTPSecure:
    tls
    SMTPAutoTLS:bool(true)
    SMTPAuth:bool(true)

    Server:
    OpenSSL: OpenSSL 1.1.1f 31 Mar 2020

    Debug:
    Email Source: Easy WP SMTP Mailer: Other SMTP SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server Additional SMTP info: php_network_getaddresses: getaddrinfo for smtp.office365.com failed: Temporary failure in name resolution

    SMTP Debug:
    2024-10-04 09:43:36 Connection: opening to smtp.office365.com:587, timeout=30, options=array()
    2024-10-04 09:43:36 Connection failed. Error #2: stream_socket_client(): php_network_getaddresses: getaddrinfo for smtp.office365.com failed: Temporary failure in name resolution [/var/www/tfltest.wellbeingontheweb.com/wp-includes/PHPMailer/SMTP.php line 408]
    2024-10-04 09:43:36 Connection failed. Error #2: stream_socket_client(): Unable to connect to smtp.office365.com:587 (php_network_getaddresses: getaddrinfo for smtp.office365.com failed: Temporary failure in name resolution) [/var/www/tfltest.wellbeingontheweb.com/wp-includes/PHPMailer/SMTP.php line 408]
    2024-10-04 09:43:36 SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo for smtp.office365.com failed: Temporary failure in name resolution (0)
    SMTP Error: Could not connect to SMTP host. Failed to connect to server
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @jaytfl,

    Thanks for reaching out & I apologize for the trouble!

    If you have enabled Multi-Factor Authentication (2 Factor Authentication) on your Microsoft 365 email account (including Hotmail, Live or Outlook), you need to set up an App Password within your Microsoft 365 account settings (see?https://a.supportally.com/NVWZpR) and then you can use that App Password as your SMTP Password.

    In case it helps, the following guide will walk you through creating an App Password:

    https://easywpsmtp.com/docs/setting-up-the-other-smtp-mailer/#outlook

    I hope that helps. Thanks!

    Hi Darshana,

    I have followed the exam same steps as documentation and still face authentication issues. I am using Hotmail and Other SMTP option.

    Here is the error log:



    Versions:
    WordPress: 6.6.2
    WordPress MS: No
    PHP: 8.2.16
    Easy WP SMTP: 2.6.0

    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.1w 11 Sep 2023
    Apache.mod_security: No

    Debug:
    Email Source: Easy WP SMTP Mailer: Other SMTP SMTP Error: Could not authenticate.

    SMTP Debug:
    2024-10-18 01:25:43 Connection: opening to smtp.office365.com:587, timeout=30, options=array()
    2024-10-18 01:25:43 Connection: opened
    2024-10-18 01:25:43 SERVER -> CLIENT: 220 SY0PR01CA0017.outlook.office365.com Microsoft ESMTP MAIL Service ready at Fri, 18 Oct 2024 01:25:43 +0000 [08DCED946B1D9525]
    2024-10-18 01:25:43 CLIENT -> SERVER: EHLO tasmanav.com.au
    2024-10-18 01:25:43 SERVER -> CLIENT: 250-SY0PR01CA0017.outlook.office365.com Hello [2400:b800:3:1::83]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
    2024-10-18 01:25:43 CLIENT -> SERVER: STARTTLS
    2024-10-18 01:25:43 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
    2024-10-18 01:25:43 CLIENT -> SERVER: EHLO tasmanav.com.au
    2024-10-18 01:25:43 SERVER -> CLIENT: 250-SY0PR01CA0017.outlook.office365.com Hello [2400:b800:3:1::83]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
    2024-10-18 01:25:43 CLIENT -> SERVER: AUTH LOGIN
    2024-10-18 01:25:43 SERVER -> CLIENT: 334 VXNlcm5hbWU6
    2024-10-18 01:25:43 CLIENT -> SERVER: [credentials hidden]
    2024-10-18 01:25:43 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
    2024-10-18 01:25:43 CLIENT -> SERVER: [credentials hidden]
    2024-10-18 01:25:48 SERVER -> CLIENT: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [SY0PR01CA0017.ausprd01.prod.outlook.com 2024-10-18T01:25:48.632Z 08DCED946B1D9525]
    2024-10-18 01:25:48 SMTP ERROR: Password command failed: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [SY0PR01CA0017.ausprd01.prod.outlook.com 2024-10-18T01:25:48.632Z 08DCED946B1D9525]
    SMTP Error: Could not authenticate.
    2024-10-18 01:25:48 CLIENT -> SERVER: QUIT
    2024-10-18 01:25:48 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
    2024-10-18 01:25:48 Connection: closed
    SMTP Error: Could not authenticate.
    Plugin Support Darshana

    (@darshanaw)

    Hi @vadyp97,

    Thank you for reaching out to us!

    Microsoft has recently updated their policies to remove Basic authentication, which affects users attempting to connect via their SMTP server using the “Other SMTP” mailer. Due to these changes, it is no longer possible to establish an SMTP connection with Microsoft servers using Basic authentication. This impacts SMTP plugins like ours as well as other software that relies on connecting to Microsoft services like Hotmail, Live, Outlook or Microsoft 365 over SMTP.

    For more detailed information, please refer to the official Microsoft documentation: Deprecation of Basic Authentication.

    We sincerely apologize for any inconvenience this may cause and recommend configuring an alternative email provider or switching to a different mailer. You can explore all available mailer options?here.

    Thank you for your understanding!

    • This reply was modified 5 months, 1 week ago by Darshana. Reason: link updated
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.