summaryrefslogtreecommitdiffstats
path: root/system/init/init_email.php
blob: 6782310ef150d2ec6747e8741cfa9c86155c7157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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';

?>