Fatal error: Uncaught SendGrid\Exception\InvalidRequest: Could not send request to server. CURL error 60: SSL: no alternative certificate subject name matches target host name 'api.sendgrid.com' in /home/dmaaincschool/public_html/vendor/sendgrid/php-http-client/lib/Client.php:470
Stack trace:
#0 /home/dmaaincschool/public_html/vendor/sendgrid/php-http-client/lib/Client.php(598): SendGrid\Client->makeRequest('post', 'https://api.sen...', Object(SendGrid\Mail), NULL, false)
#1 /home/dmaaincschool/public_html/application/helpers/send_grid_helper.php(40): SendGrid\Client->__call('post', Array)
#2 /home/dmaaincschool/public_html/application/controllers/capture.php(103): sendemail('admin@acquisiti...', 'Visit Invitatio...', NULL, '<!DOCTYPE html>...')
#3 /home/dmaaincschool/public_html/system/core/CodeIgniter.php(359): capture->page('15263', 'SusanS55')
#4 /home/dmaaincschool/public_html/index.php(232): require_once('/home/dmaaincsc...')
#5 {main}
thrown in /home/dmaaincschool/public_html/vendor/sendgrid/php-http-client/lib/Client.php on line 470