Smtp Problem

hi i am having a problem can help you all the settings looks normal but tls can’t activate

ErrorException: Email to em***** failed: [E_WARNING] stream_socket_enable_crypto(): Peer certificate' did not match expected CN=cleared’

Problem Solved



auth_mechanisms = plain login


Changed Server IP to Server Host Name

$mail->Host = “hostname”;

Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /home/ on line 368

Fatal error: Uncaught phpmailerException: SMTP Error: Could not connect to SMTP host. in /home/

Is anyone also facing the issue?