35dir官方网站 » 资讯 » 35dir专区 » 文章详细

35dir分类目录网站SMTP Error: Could not connect to SMTP host.错误的解决方法

来源:本站原创 浏览:293次 时间:2012-12-26

原来的

$this->smtp_conn = fsockopen(
    $host,
    $port,
    $errno,
    $errstr,
    $timeout
);
修改为: 
$this->smtp_conn =  fsockopen(
    $host,
    $port,
    $errno,
    $errstr,
    $timeout
);
或者
$this->smtp_conn = @stream_socket_client(
    $host,
    $port,
    $errno,
    $errstr,
    $timeout
);
### 另:邮件密码是在邮箱设置里面的授权码,而不是登录密码