Welcome Guest, Not a member yet? Register   Sign In
Adding Specific Configuration in CodeIgniter Email Class
#4

(12-17-2017, 05:09 AM)InsiteFX Wrote: On localhost you need to setup the SMTP etc; in your php.ini file.

I setup my localhost to use my comcast smtp server and it works fine.

So, was I right? It was a problem with the firewall and the ports?

I get solve this problem :

Edit File System/libraries/Email.php 

function _smtp_connect
change fsockopen to stream_socket_client
$context = stream_context_create([
            'ssl' => [
                'verify_peer' => false,
                'verify_peer_name' => false
            ]
        ]);



$this->_smtp_connect = stream_socket_client($ssl.$this->smtp_host . ':' 
                                        . $this->smtp_port,
                                        $errno,
                                        $errstr,
                                        $this->smtp_timeout,STREAM_CLIENT_CONNECT, $context);
Reply


Messages In This Thread
RE: Adding Specific Configuration in CodeIgniter Email Class - by DenilsonPereira - 05-15-2020, 09:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB