如何检查邮件服务器是在PHP下(how to check mail server is down in php)
有没有人如何检查我使用的邮件服务器是否关闭或不使用PHP?
Does anyone how can I check whether the mailserver I use is down or not with php?
最满意答案
使用Net_SMTP与服务器建立连接。 它不会是完美的,但如果你不能连接,那么它可能会下降。
Use Net_SMTP to make a connection to the server. It won't be perfect, but if you can't connect then it's probably down.
更多推荐
发布评论