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

[其它 Other] 虚拟主机发送邮件时不支持fsockopen和pfsockopen的解决方法

[复制链接]
发表于 2013-6-9 12:45:42 | 显示全部楼层 |阅读模式
直接将email类中

这一段
$this->_smtp_connect = fsockopen($ssl.$this->smtp_host,$this->smtp_port,$errno,$errstr,$this->smtp_timeout);

改成
$this->_smtp_connect = stream_socket_client($ssl.$this->smtp_host.':'.$this->smtp_port,$errno,$errstr,$this->smtp_timeout);

发表于 2013-6-9 13:02:48 | 显示全部楼层
谢谢楼主,标记一下

本版积分规则