Don’t turn off CURLOPT_SSL_VERIFYPEER but fix your PHP configuration to resolve SSL errors in PHP. These errors are often caused by not having an up-to-date bundle of CA root certificates on your system. So please, don’t turn off CURLOPT_SSL_VERIFYPEER in your PHP config, but fix the cURL errors by updating cURL’s bundle of CA root certificates and your php.ini configuration.
Send outgoing mail over authenticated SMTP using TLS, in PHP, ASP and ASP.NET. Send email securely from your website. Ready to use examples!