email sending in codeigniter

Email Sending In Codeigniter Using Gmail

Now a days any web application requires email functionality to send activation link, reset password and news letters. For sending email we need SMTP server. If you want to send emails from local, Gmail is the better option. Without any SMTP configurations send emails easily. To use Gmail service we need Gmail account.  It is not suitable for large scale applications because gmail providing some limited amount of emails for each account.

In this example i have try to explain simple set up for sending sample email in Codeigniter using Gmail SMTP configuration.

In Controller :

In Helper :

Template view file :