0
点赞
收藏
分享

微信扫一扫

phpmail SMTP error failed to connect server 解决方法:

Jonescy 2022-02-02 阅读 109
php服务器

phpmail SMTP error failed to connect server解决方法:

class.smtp.php 文件里
原来的:

$this->smtp_conn =fsockopen(
$host,
$port,
$errno,
$errstr,
$timeout
);

修改为:
$this->smtp_conn = @stream_socket_client(
$host,
$port,
$errno,
$errstr,
$timeout
);

举报

相关推荐

0 条评论