Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Codeigniter电子邮件库-未定义属性:stdClass::$Email_Php_Codeigniter_Email - Fatal编程技术网

Php Codeigniter电子邮件库-未定义属性:stdClass::$Email

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';

我曾经测试过使用CodeIgniter中的电子邮件库,并且成功了。但是现在,当我再次测试它时,我得到以下错误

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