|
我用框架的email类来发送邮件,怎么发送后,查看邮件,但结果为空,这个是怎么回事?
$this->load->library('email');
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'smtp.126.com';
$config['smtp_user'] [email==]='wangmao2002@126.com'[/email];
$config['smtp_pass'] = 'xxx';
$config['smtp_port'] = 25;
$config['smtp_timeout'] = 30;
$config['charset'] = 'gbk';
$config['wordwrap'] = TRUE;
$this->email->initialize($config);
$this->email->from('wangmao2002@126.com';, 'email test');
$this->email->to([email=]'wangmao2002@126.com'[/email]);
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send(); |
|