Could not connect to SMTP host. Failed to connect to server

After changing to Cloudflare I got this error when sending an email test:

SMTP Debug:
2023-09-03 16:21:35 Connection: opening to mail..pt:465, timeout=30, options=array()
2023-09-03 16:22:05 Connection failed. Error #2: stream_socket_client(): Unable to connect to mail.
.pt:465 (Connection timed out) [/home/-/public_html/wp-includes/PHPMailer/SMTP.php line 397]
2023-09-03 16:22:05 SMTP ERROR: Failed to connect to server: Connection timed out (110)
SMTP Error: Could not connect to SMTP host. Failed to connect to server

Can someone help me out? Much appreciated.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.