Connection failed. Error #2: stream_socket_client(): unable to connect to smtp
-
Hello
I have a problem with sending e-mails from wpmail via the outlook365.com server thru other SMTP option.
Connection failed. Error # 2: stream_socket_client (): unable to connect to smtp.office365.com:587 (Network is unreachable)full log
Versions:
WordPress: 5.7.5
WordPress MS: No
PHP: 7.4.20
WP Mail SMTP: 2.9.0Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Host: smtp.office365.com
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)Server:
OpenSSL: OpenSSL 1.0.2k 26 Jan 2017Debug:
Mailer: Other SMTP
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingSMTP Debug:
2022-01-24 23:31:15 Connection: opening to smtp.office365.com:587, timeout=300, options=array()
2022-01-24 23:31:18 Connection failed. Error #2: stream_socket_client(): unable to connect to smtp.office365.com:587 (Network is unreachable) [/SZKOLENIA/wp-includes/PHPMailer/SMTP.php line 388]
2022-01-24 23:31:18 SMTP ERROR: Failed to connect to server: Network is unreachable (101)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
The hosting provider claims that there is a blockage on the outlook side
I personally check through mxtoolbox.com and it works – there is no blockade
I can also connect to an e-mail client from any networkDoes wp mail have any lock on other smtp which is Server name: SMTP service settings
Server name: smtp.office365.com
Port: 587
Encryption method: STARTTLSwhich TLS version of wp mail does it use?
The page I need help with: [log in to see the link]
- The topic ‘Connection failed. Error #2: stream_socket_client(): unable to connect to smtp’ is closed to new replies.