ciemail

Configure and Send email in Codeigniter

In this post you will learn how to send an Html email with file attachment in Codeigniter. Sending email in CodeIgniter is much easier. You also configure the preferences regarding email in CodeIgniter.

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.

See the code below.

Run this code in a controller function and pass the required parameters. This is 100% working code sending emails in your Inbox until you use such keywords which is blocked by the email service provider.