blob: 6782310ef150d2ec6747e8741cfa9c86155c7157 [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2
3/**
4 * Loads and instantiates email class
5 *
6 * @access private called by the app controller
7 */
8
9$config = array();
10if (file_exists(APPPATH.'config/email'.EXT))
11{
12 include_once(APPPATH.'config/email'.EXT);
13}
14
15if ( ! class_exists('CI_Email'))
16{
17 require_once(BASEPATH.'libraries/Email'.EXT);
18}
19
20$obj =& get_instance();
21$obj->email = new CI_Email($config);
22$obj->ci_is_loaded[] = 'email';
23
24?>