Sendgrid Integration


Does anyone have experience integrating Sendgrid with CS cart? My setup was working fine but then today I started getting the following error:

"ErrorMessage could not be sent.
Mailer Error: SMTP connect() failed."

I have followed this guide:

And tried setting the host to both "" and "", but neither works.

I have attached what settings currently are, and below is a snippet of code from cpanel error_log:

[01-Dec-2017 18:28:19 Europe/Moscow] PHP Warning: stream_socket_enable_crypto(): Peer certificate CN=`*' did not match expected CN=`' in /home/*snipped*/public_html/app/lib/vendor/phpmailer/phpmailer/class.smtp.php on line 368

Thanks !


It looks like a bad certificate at

Just glad our blog post was referenced :)