[eluser]WanWizard[/eluser]
If you look in the email library, you will find this constructor:
Code:
function CI_Email($config = array())
{
if (count($config) > 0)
{
$this->initialize($config);
}
else
{
$this->_smtp_auth = ($this->smtp_user == '' AND $this->smtp_pass == '') ? FALSE : TRUE;
$this->_safe_mode = ((boolean)@ini_get("safe_mode") === FALSE) ? FALSE : TRUE;
}
log_message('debug', "Email Class Initialized");
}
Which means that it calls the same initialize method() that you're calling yourself. Which in turn means your problem is elsewhere.
Check after you've loaded the email class if the variables you have defined in your config file are really set by the email library. If not, there may be an issue with your config file.