要在cpanel php mailer中完成的配置无法连接到SMTP主机



邮件功能在我的本地主机上运行良好,但当我在服务器cpanel中上传代码时,它会向我抛出以下错误

SMTP -> ERROR: Failed to connect to server: Connection refused (111)
SMTP Error: Could not connect to SMTP host.

如果我telnet我的域服务器

220-xxxxx.xxxxxxxxxx.com ESMTP Exim 4.69 #1 Fri, 30 Mar 2012 00:00:13 -050
0
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.

由于脚本在服务器上不起作用,请检查服务器上的防火墙。

SSH到服务器,telnet到接收方域的mx记录。

telnet mail.receiver.com 25

最新更新