How to send email using Codeigniter

In this tutorial, I will describe how to send emails in a CodeIgniter application using SMTP. I will use the well known and maintained email sending class.



$config['protocol'] = 'sendmail';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;
$config['mailtype'] = 'html';

$this->email->message("Type your message");

Leave a Reply

Your email address will not be published. Required fields are marked *