分类目录网站审核后不能发

来源:重庆分类目录  浏览:1367次  时间:2018-01-25

最近发现虚拟主机升级为云虚拟主机,分类目录网不审核后不能发送邮件报错!

SMTP -> ERROR: Failed to connect to server: Connection timed out (110)

SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host.1233072


经过发现需要启用465端口,加密ssl。以下详细说明解决办法:



1、在后台系统设置》邮件设置,SMTP服务器端口原25改为465。


2、找到sendmail.php 第18项  gmail需要启用sll安全连接。前面//取消。即启用。$mail->SMTPSecure = "ssl";