CodeIgniter
CodeIgniter copied to clipboard
"mailtype" config item is can not be set (2.0.3)
$this->load->library('email', array( 'mailtype' => 'html' ));
Does not set 'mailtype' for eamil.
$this->load->library('email'); $this->email->initialize(array( 'mailtype' => 'html' ));
"initialize" method set this item correctly.
Quoting current version of CI_Email::__construct() in develop:
public function __construct($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 = (bool) @ini_get("safe_mode");
}
log_message('debug', "Email Class Initialized");
}
... so this should be working now.