CodeIgniter Email Helper

This helper supports to queue the emails from the website. The settings from the configuration file will be used for sender name and email address.

Functions

  • sendEmail($data, $immediate=FALSE)
    Generate email based on the given input and settings and schedule it for processing. if the second parameter is TRUE email is sent immediately and will not wait in the queue. The first parameter $data should an array and it should contain the following keys with values. $data['to'] - to whoom send the email,$data['subject'] - email subject and $data['template'] - view name to generate email content. $data['bcc'] and $data['priority'] are optional parameters. $data array also will be passed to the view given as the template name. So any additional parameters needed for the email view also can be included in the data array.