I get this error when trying to connect to our SMTP cyberpanel setup, from another server.
However, we can use the SMTP settings in the current cyberpanel server and it works fine. See screenshot below.
Here is the logs SMTP wordpress plugin.
ErrorInfo: SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): Peer certificate CN=
server.e-cruitment.host' did not match expected CN=mail.workingeverywhere.com’SMTP server error: QUIT command failed Detail: Jh���$��s�]t��l��221 server.e-cruitment.host closing connection