summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index c9b9365ec..fd3fb8f17 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -15,8 +15,14 @@
// INITIALIZE THE CLASS ---------------------------------------------------
+$config = array();
+if (file_exists(APPPATH.'config/email'.EXT))
+{
+ include_once(APPPATH.'config/email'.EXT);
+}
+
$obj =& get_instance();
-$obj->init_class('CI_Email');
+$obj->init_class('CI_Email', 'email', $config);
// ------------------------------------------------------------------------