SMTP connect() failed. outlook365

Asked

Viewed 220 times

0

I searched in other similar topics and no resolved.

Let’s say overnight all the emails on the site just stopped working, and now you’re having trouble connecting to the server.

Look at the settings and error log:

    Versions:
WordPress: 4.9.6
WordPress MS: No
PHP: 5.6.32
WP Mail SMTP: 1.2.5

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: Yes
Apache.mod_security: No
SMTP Debug:
2018-06-21 13:37:19 Connection: opening to smtp.office365.com:587, timeout=300, options=array (
)
2018-06-21 13:37:19 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known
2018-06-21 13:37:19 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to smtp.office365.com:587 (php_network_getaddresses: getaddrinfo failed: Name or service not known)
2018-06-21 13:37:19 SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
2018-06-21 13:37:19 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Please copy only the content of the error debug message above, identified with an orange left border, into the support forum topic if you experienc

I’ve tried other doors like 25 and yet you keep making a mistake.

  • Can you find out if the server your service is on has a route to smtp.office365.com? A ping should tell if it has route

  • Investigate in the outlook365 settings, probably there is some setting to allow know email to be Sender.

  • 1

    @Alisonramosdasilva the problem that I tested other SMTP and they also did not work , I’m starting to think that Ocaweb blocked some port and ran out of route, because the day before this problem informed me here that gave an error in the database.

  • 1

    Good now I managed to connect direct, DNS of the web site was not allowing i forced the SMTP of outlook, the problem now is that the contact form 7 is not able to send email.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.