SMTP connect() failed
-
Hi,
I hope someone can help with this?
I am new to webdesign and all things wordpress and I’m having a little trouble getting the WP Mail SMTP plugin to work with ‘Other SMTP’ selected and using smtp.office365.com as the host.I have populated all of the fields with the correct information and I know that the credentials are correct.
Sending a test email throws this error report right back at me…
Versions: WordPress: 5.8.3 WordPress MS: No PHP: 7.4.26 WP Mail SMTP: 3.2.1 Params: 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.1.1d 10 Sep 2019 Apache.mod_security: No Debug: Email Source: WP Mail SMTP Mailer: Other SMTP SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting SMTP Debug: 2022-02-08 19:55:32 Connection: opening to smtp.office365.com:587, timeout=300, options=array() 2022-02-08 19:55:35 Connection failed. Error #2: stream_socket_client(): unable to connect to smtp.office365.com:587 (Network is unreachable) [/home/fs7dfeztrlrj/public_html/transporterheaven.co.uk/wp-includes/PHPMailer/SMTP.php line 388] 2022-02-08 19:55:35 SMTP ERROR: Failed to connect to server: Network is unreachable (101) SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
I am using GoDaddy as my webhost and they haven’t been able to offer a solution.
I have enabled SMTP on the email account.Am I doing anything wrong and can someone educate me on the significance of the SMTP.php file (line 388)?
Opening SMTP.php and looking at line 388 gives me this… ‘$host . ‘:’ . $port,’Many thanks in advance for any help that can be offered.
Gavin
- The topic ‘SMTP connect() failed’ is closed to new replies.