Hi @artimusic,
Thanks for reaching out! Are you only experiencing this issue with Wordfence Security email notifications? Can you send test emails from your WP Mail SMTP -> Tools area? If so, you need to enable to “from from email” setting under the WP Mail SMTP -> Settings section.
If you’re experiencing this issue for all emails, it indicates that your mail server is refusing the SMTP connection requests.
To fix this, you’ll need to contact your hosting provider with the error report. They should be able to advise on why the connection is being refused and hopefully resolve it.
In the meantime, you may configure an alternative mailer.
I hope this helps. Thanks!
Versions:
WordPress: 6.4.3
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.
Host: [email protected]
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.
SMTP Debug:
Invalid host: [email protected]
SMTP Error: Could not connect to SMTP host.
Hi @artimusic,
According to the error message, your host name is incorrect. There is an “@” symbol in your host name, which is invalid. Please contact your email provider and request the correct SMTP configurations from them. Update the WP Mail SMTP -> Settings page with the correct information to resolve the issue.
I hope this helps. Thanks!