I have written a code to check port 25 of one of my local server . The smtp server is running on the server, but when i check with fsockopen, returns a connection refused error . So how i check whether SMTP is down or up using a simple php code .
2条回答 默认 最新
- 普通网友 2013-04-24 09:41关注
Are the php script and the smpt on the same machine? Have you checked the connection with telnet?
telnet your.local.server 25Generally "Connection refused" means, what it says ;)
- smtp server is not running, or
- your server is not reachable (firewall?)
解决 无用评论 打赏 举报