FuelPHP Bin
<?php // // replace this in /fuel/packages/email/classes/email/driver/smtp.php // /** * Connects to the given smtp and says hello to the other server. */ protected function smtp_connect() { // re-use the existing connection if ( ! empty($this->smtp_connection)) { return; } // add a transport if not given if (strpos($this->config['smtp']['host'], '://') === false) { $this->config['smtp']['host'] = 'tcp://'.$this->config['smtp']['host']; } $context = stream_context_create(); stream_context_set_option($context, 'ssl', 'allow_self_signed', false); stream_context_set_option($context, 'ssl', 'verify_peer', false); stream_context_set_option($context, 'ssl', 'verify_peer_name', false); $this->smtp_connection = stream_socket_client( $this->config['smtp']['host'].':'.$this->config['smtp']['port'], $error_number, $error_string, $this->config['smtp']['timeout'], $context ); // rest of the function