email类无法发送给qq邮箱
$config['protocol'] = 'smtp';$config['smtp_host'] = 'smtp.163.com';
$config['smtp_user'] = 'xxxxx@163.com';
$config['smtp_pass'] = 'xxxx';
$config['smtp_timeout'] = 30;
$config['smtp_port'] = 25;
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n";
$this->load->library('email');
$this->email->initialize($config);
$this->email->from('xxxx@163.com', 'xxxx');
$this->email->to('xxxxx@qq.com');
$this->email->subject('Email Test是');
$this->email->message('内容henhao');
if($this->email->send()){
echo '发送成功';
}else{
echo '发送失败';
echo $this->email->print_debugger();
}
163邮箱可以发送给163邮箱,但无法发送给qq邮箱,怎么办:'( 肯定不可以啦! smtp_host都是163的怎么可能可以发给qq你把smtp_host换成 QQ的 hi丶你好 发表于 2016-9-12 10:59
肯定不可以啦! smtp_host都是163的怎么可能可以发给qq你把smtp_host换成 QQ的
只能用qq发给qq吗,
页:
[1]