Php Codeigniter电子邮件库-未定义属性:stdClass::$Email
我曾经测试过使用CodeIgniter中的电子邮件库,并且成功了。但是现在,当我再次测试它时,我得到以下错误Php Codeigniter电子邮件库-未定义属性:stdClass::$Email,php,codeigniter,email,Php,Codeigniter,Email,我曾经测试过使用CodeIgniter中的电子邮件库,并且成功了。但是现在,当我再次测试它时,我得到以下错误 Message: Undefined property: Gate::$email 其中Gate是父类 这是我在函数中配置电子邮件库的方式 $config['protocol'] = 'mail'; $config['charset'] = 'iso-8859-1'; $config['wordwrap'] = TRUE; $config['mailtype'] = 'html';
Message: Undefined property: Gate::$email
其中Gate是父类
这是我在函数中配置电子邮件库的方式
$config['protocol'] = 'mail';
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;
$config['mailtype'] = 'html';
$this->load->library('email', $config);
$this->email->from('no-reply@xxxx.com', 'xxxx.com');
$this->email->to($mail);
错误出现在
$this->email->from('no-reply@xxxx.com', 'xxxx.com');
根据这段代码,我很确定它配置正确。
如果有人知道这个错误,请帮我解决。你能发布你的父类门的代码吗?当然我可以发布@Saty