√__豿艉騲℡ 发表于 2011-7-18 13:44:37

发送邮件为什么一直等待服务器响应?

本帖最后由 √__豿艉騲℡ 于 2011-7-18 13:45 编辑

这样写有错吗?
$config = array(
                'protocol' => 'smtp',
                'smtp_host' => 'smtp.qq.com',
                'smtp_port' => 25,
                'smtp_user' => '87538424',
                'smtp_pass' => '123',
                'charset' => 'gb2312',
                'mailtype' => 'html',
                'validate' => true
            );
            
            $this->load->library('email', $config);
            $this->email->set_newline('\r\n');
            
            $this->email->from('87538424@qq.com', 'Jason');
            $this->email->to('87538424@qq.com');
            
            $this->email->subject('测试');
            $this->email->message('测试Email');
            $this->email->send();
页: [1]
查看完整版本: 发送邮件为什么一直等待服务器响应?