如何检查SMTP服务器,而无需发送电子邮件? [英] How can i check smtp server without sending email?

查看:1085
本文介绍了如何检查SMTP服务器,而无需发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Web应用程序,用户可以设置SMTP服务器信息(服务器/主机,SMTP端口,用户名,密码,EmailAddress的,usedSSL)。我需要当用户设置信息validatre服务器不发送电子邮件,并检查是SMTP信息有效还是无效?

I had web application that users can set SMTP server information (server/host, SMTP Port, Username, Password, EmailAddress, usedSSL). i need when user set information validatre server without sending email and check Is smtp information valid or not?

我发现网站,完美的作品,并检查SMTP服务器还活着(但不验证检查).. 的http:// mxtoolbox.com/dia​​gnostic.aspx

I found website that works perfect and check is SMTP server alive (but not authentication check).. http://mxtoolbox.com/diagnostic.aspx

修改1:

坦@Dieter DHoker帮我找测试SMTP服务器是否正在运行通过C#在评论...

Tanx @Dieter DHoker help me to find Testing SMTP server is running via C# in comments...

反正是有,我检查身份验证信息(用户名和放大器;密码和放大器;电子邮件地址),因为我需要检查所有SMTP信息是否有效?我之前问。

Is there anyway that i check authentication information (username & password & email address) as i need to check all smtp information is valid or not? that i asked before..

推荐答案

有一个在SMTP(参见RFC 821),没有用户名和密码,所以没有办法测试。 你可以使用一个MAIL FROM和RCPT TO序列中,但不发送任何数据,就看你会被允许发送邮件给定的信息,而不发送实际的邮件。

There's no username and password in SMTP (see rfc 821), so there's no way to test that. You could use a MAIL FROM and RCPT TO sequence, but not send any DATA, to see if you'll be allowed to send mail with the given information, without sending an actual mail.

这篇关于如何检查SMTP服务器,而无需发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆