CodeIgniter Forums
Send SMTP Mail Via SSL on PHP 7 Environment - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Send SMTP Mail Via SSL on PHP 7 Environment (/showthread.php?tid=70668)



Send SMTP Mail Via SSL on PHP 7 Environment - mertdogan - 05-10-2018

I want to send mail by codeigniter Email Library.

Everything works well on PHP 5.4.24 configuration but when i want to migrate to PHP 7 , a lot of SSL certificate problems occurs.

I don't want to install certificate to my machine, only want to send a simple email.

It seems, in 5.4.24, verify_peer is false by default but after php 5.6 verify_peer is TRUE.

And so; how can i set verify_peer to false for Codeigniter Email initialization.


RE: Send SMTP Mail Via SSL on PHP 7 Environment - InsiteFX - 05-11-2018

Use your own internet providers SMTP that you get your emails from.

I have comcast and I use their SMTP. Set it up to use in php.ini