I am trying to create my custom email configuration file that includes my mail server configuration.
I created it in the / config directory and the code below:
<?php $config = Array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.googlemail.com', 'smtp_port' => 465, 'smtp_user' => ' mertmetinbjk@gmail.com ', 'smtp_pass' => '*************', 'mailtype' => 'html' ); $this->load->library('email', $config); $this->email->set_newline("\r\n"); ?>
and to use it, I call in my kayit.php, which is the controller constructor
$this->config->load('email');
However, I get this error 
source share