|
代码:
$this->load->library('email');
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'smtp.qq.com';
$config['smtp_user'] = '******@qq.com';
$config['smtp_pass'] = '******';
$config['charset'] = 'utf-8';
$this->email->initialize($config);
$this->email->from('******@qq.com', 'Name');
$this->email->to('******@126.com');
$this->email->subject('邮件测试');
$this->email->message('Testing the email class.');
$this->email->send();
页面就一直处于载入状态,根本就发送不出去,我后来试了一下用126的邮箱给qq邮箱发邮件是成功的,不知道是怎么回事,求助!
|
|