简体   繁体   中英

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

mailing function works fine on my localhost but when i upload my code in server cpanel it is throwing me the following error

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

if i telnet my domain server

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.

As the script is not working on the server, check the firewall on the server.

SSH to server and telnet to mx record of the recipient domain.

telnet mail.receiver.com 25

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM