bryglen / yii2-sendgrid

sendgrid wrapper for yii 2
MIT License
12 stars 25 forks source link

SSL certificate problem: self signed certificate in certificate chain - issue with dynamically configure turn_off_ssl_verification #11

Closed mits-techreceptives closed 8 years ago

mits-techreceptives commented 8 years ago

I am extending my wrapper class with this sendgrid . I have setup all configuration dyamically and works proper but i am facing above error . to resolve it , i have to manually set $options['turn_off_ssl_verification'] = "True" to \vendor\sendgrid\lib\SendGrid.php's Constructor. How to configure this parameter dynamically from configuration or by any other way ??

bryglen commented 8 years ago
'options' => [
   'turn_off_ssl_verification' => true
]

see https://github.com/bryglen/yii2-sendgrid/blob/master/Mailer.php#L108

mits-techreceptives commented 8 years ago

Yeah.. Got it @bryglen . Thanks a lot !!