SMTP Certificate problem

Hi. After reinstalling I am now trying to mail invoices using SMTP setting but phpmailer is giving me SMTP Error: Could not authenticate.

I set log threshold up in the config file and checked my log file and found this:

ERROR - 2016-01-20 18:04:18 --> Severity: Warning --> stream_socket_enable_crypto(): Peer certificate CN=`*.sgcpa' did not match expected CN=`' /var/www/html/invoiceagain/application/modules/mailer/ helpers/phpmailer/class.smtp.php 344

Is this error easily fixed? It seems like it is a certificate mismatch like we see in web browsers.

Update: This is definitely an SSL certificate mismatch problem. I changed my email settings to use my ISP mail server and it all sends perfectly. My domain name doesn’t have an SSL Certificate so phpmailer gets the mismatch message and stops.