用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2855|回复: 2
收起左侧

[HELP] email类无法发送给qq邮箱

[复制链接]
发表于 2016-9-10 19:35:43 | 显示全部楼层 |阅读模式
                $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邮箱,怎么办
发表于 2016-9-12 10:59:15 | 显示全部楼层
肯定不可以啦! smtp_host都是163的怎么可能可以发给qq  你把smtp_host换成 QQ的
 楼主| 发表于 2016-9-12 12:23:52 | 显示全部楼层
hi丶你好 发表于 2016-9-12 10:59
肯定不可以啦! smtp_host都是163的怎么可能可以发给qq  你把smtp_host换成 QQ的

只能用qq发给qq吗,

本版积分规则