Send email using CodeIgniter

Send email using CodeIgniter

Hi Guys!! Today we are going to share with you how to send email using CodeIgniter. Its very easy and 3 step proccess. In this we are using SMTP. Let’s start it.


Step1: Copy send_email function from below and paste it in your controller file.

Step2: Replace the smtp_user and smtp_pass with your gmail credentials.

Step3: Use the function in your controller as shown below:

Replace and with your sender and receiver email. That’s all.

This will work like a charm. If you still find any issue you can reply below or can contact us.

Enjoy Coding!!

Share This:

Leave a Reply