This is the error.
Versions:
WordPress: 6.5
WordPress MS: No
PHP: 7.4.33
WP Mail SMTP: 4.0.1
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 SMTP code: 101 Additional SMTP info: Network is unreachable
Host: smtp.gmail.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: WP Mail SMTP Mailer: Other SMTP SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server SMTP code: 101 Additional SMTP info: Network is unreachable
SMTP Debug:
2024-04-04 11:36:25 Connection: opening to smtp.gmail.com:587, timeout=300, options=array()
2024-04-04 11:36:26 Connection failed. Error #2: stream_socket_client(): unable to connect to smtp.gmail.com:587 (Network is unreachable) [/home/spausapt/public_html/wp-includes/PHPMailer/SMTP.php line 409]
2024-04-04 11:36:26 SMTP ERROR: Failed to connect to server: Network is unreachable (101)
SMTP Error: Could not connect to SMTP host. Failed to connect to server
-
This reply was modified 2 years, 2 months ago by
mktbydas.
Hi @mktbydas,
Thanks for reaching out! It appears that your server is blocking SMTP connection requests.
Instead of the Other SMTP mailer option, please follow our Google mailer guide and configure the WP Mail SMTP plugin using your Gmail email.
Google Mailer utilizes an API-based connection method, which is known for its enhanced security and reliability.
I hope this helps. Thanks!
Thank you for your reply.
It could be a problem with the server where my website is hosted. In DEV mode it works fine and with any email. The “Live” website doesn’t have any “Other Email” integration.
Hi @mktbydas,
Yes, it’s a server-related issue that you need to report to your server support.
In the meantime, please configure the Google mailer as mentioned above.
I hope this helps. Thanks!
Thanks for your help, the problem was with the website’s server.
I’ve fixed the problem.
Thank you for your help.