CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

"mailtype" config item is can not be set (2.0.3)

Open chernavin opened this issue 15 years ago • 1 comments

$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.

chernavin avatar Sep 15 '11 12:09 chernavin

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.

narfbg avatar Jan 03 '12 09:01 narfbg