簡體   English   中英

在cpanel php郵件程序中完成的配置無法連接到SMTP主機

[英]Configuration to be done in cpanel php mailer Could not connect to SMTP host

郵件功能在我的本地主機上工作正常,但是當我在服務器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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM