How to Sending Email in CodeIgniter

13.2.11 Posted by Didit A 1 comments
Now, i will show you how to sending email using CodeIgniter framework. There is so simple i thought. Here is:

Sending email is not only simple, but you can configure it on the fly or set your preferences in a config file.

Here is a basic example demonstrating how you might send email. Note: This example assumes you are sending the email from one of your controllers.
$this->load->library('email');

$this->email->from('your@example.com', 'Your Name');
$this->email->to('someone@example.com');
$this->email->cc('another@another-example.com');
$this->email->bcc('them@their-example.com');

$this->email->subject('Email Test');
$this->email->message('Testing the email class.');

$this->email->send();

echo $this->email->print_debugger();

Just it. Lets try...if any question, just leave a comment here. Thanks.