Im getting this error while trying ti setup SMTP email can some one help me with it
Connection: opening to smtp.gmail.com:587, timeout=30, options=array ( )
Connection: opened
SERVER -> CLIENT: 220-server12.thulo.com ESMTP Exim 4.93 #2 Mon, 25 Jan 2021 13:04:32 +0545 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
CLIENT -> SERVER: EHLO crm.d20labs.art
SERVER -> CLIENT: 250-server12.thulo.com Hello crm.d20labs.art [165.22.215.101] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP
CLIENT -> SERVER: STARTTLS
SERVER -> CLIENT: 220 TLS go ahead
Connection failed. Error #2: stream_socket_enable_crypto(): Peer certificate CN=`server12.thulo.com' did not match expected CN=`smtp.gmail.com' [/home/dlabsart/public_html/crm/application/vendor/phpmailer/phpmailer/class.smtp.php line 374]
SMTP Error: Could not connect to SMTP host.
CLIENT -> SERVER: QUIT
SERVER -> CLIENT: �Z�M��s���J���.Z�P�&�+x1X221 server12.thulo.com closing connection
SMTP ERROR: QUIT command failed: �Z�M��s���J���.Z�P�&�+x1X221 server12.thulo.com closing connection
Connection: closed
SMTP connect() failed.
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting