时间:2021-07-01 10:21:17 帮助过:47人阅读
修改:
class.stmp.php
解决:
1:
118行:
$this->smtp_conn = fsockopen($host, // the host of the server
改为:
$this->smtp_conn = pfsockopen($host, // the host of the server
2:
文件:class.phpmailer.php
291行:
public function IsSMTP() {
$this->Mailer = 'smtp';
}
改为:
public function IsSMTP() {
$this->Mailer = 'SMTP';
}
http://www.bkjia.com/PHPjc/477185.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/477185.htmlTechArticlephp PHPMailer发送邮件,出现无法连接host,这是因为fsockopen函数被禁用,PHPmailer发送Email依赖此函数。 修改: class.stmp.php 解决: 1: 118行:...