User Guide | Email Configuration

The key concept of the flexi auth library is to give the developer a toolbox of functions that they can use to build a user authentication system matching the custom specifications required by their site.

One of the ways that the library enhances the customisation of the authentication system is by allowing many of the internal library settings to be defined by the developer via the libraries config file.

Email Configuration

Email Index | Email Functions
Config File Settings

Email Settings

Email Settings

Some of the functions in flexi auth need to send emails to the user (i.e. 'Account Activation', 'Forgot Password' etc).
If required, the title, reply address, email type and the content of these emails can be configured to suit different website needs.


Example
// Site title shown as 'from' header on emails.
$config['email']['site_title'] = 'flexi auth';

// Reply email shown as 'from' header on emails.
$config['email']['reply_email'] = 'info@website.com';

// Type of email to send, options: 'html', 'text'.
$config['email']['email_type'] = 'html';

// Sub-directory where email templates are stored within CI's 'view' directory.
$config['email']['email_template_directory'] = 'includes/email/';

// Filename of 'Activate Account' email template.
$config['email']['email_template_activate'] = 'activate_account.tpl.php';

// Filename of 'Forgot Password' email template.
$config['email']['email_template_forgot_password'] = 'forgot_password.tpl.php';

// Filename of 'Forgot Password Complete' email template.
$config['email']['email_template_forgot_password_complete'] = 'new_password.tpl.php';

// Filename of 'Update Email' email template.
$config['email']['email_template_update_email'] = 'update_email_address.tpl.php';