原来的
$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
);
### 另:邮件密码是在邮箱设置里面的授权码,而不是登录密码


版权声明:
原文链接: 
