Source Code of Codeigniter Email Send with Attachment

This is full source code of tutorial on How to send email with attachment in Codeigniter. In file you have to just set base url of folder path where you have to run this source code. Then after just you have to copy base url in browser and write sendemail controller name in url. In this controller send method you have to define your SMTP credential for send email by using this source code. This way you can run this source code on send email with attachment using Codeigniter in your computer.

If you get any difficulty in download source code file, then you can e-mail us at, we will reply on your email with attach updated source code file in zip folder.


  1. Im getting an error in the email tab. it says: "There is an error in email send".
    Please reply ASAP