diff options
Diffstat (limited to 'system/init/init_email.php')
-rw-r--r-- | system/init/init_email.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/system/init/init_email.php b/system/init/init_email.php new file mode 100644 index 000000000..6782310ef --- /dev/null +++ b/system/init/init_email.php @@ -0,0 +1,24 @@ +<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); + +/** + * Loads and instantiates email class + * + * @access private called by the app controller + */ + +$config = array(); +if (file_exists(APPPATH.'config/email'.EXT)) +{ + include_once(APPPATH.'config/email'.EXT); +} + +if ( ! class_exists('CI_Email')) +{ + require_once(BASEPATH.'libraries/Email'.EXT); +} + +$obj =& get_instance(); +$obj->email = new CI_Email($config); +$obj->ci_is_loaded[] = 'email'; + +?>
\ No newline at end of file |