codeigniter – Sending Email – Set Your Email Config Parameters

Create a new file in the application/config folder named email.php

Set the parameters for sending email. These will load when you send your email.

$config['newline'] = "\r\n"; //You must use double quotes on this one
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.gmail.com'; //Change for your specific needs
$config['smtp_port'] = 465; //Change for your specific needs
$config['smtp_user'] = 'test@test.com'; //Change for your specific needs
$config['smtp_pass'] = 'yourpassword'; //Change for your specific needs
$config['charset'] = 'iso-8859-1';
$config['mailtype'] = 'text'; //This can be set as 'html' too

if you want to reproduce, please indicate the source:
codeigniter – Sending Email – Set Your Email Config Parameters - CodeDay