|
项目描述: |
This is a cut down version of the DNS client, which can be used to retrieve the MX (mail exchange) record for any Internet address from a DNS server. You can use this MX record to send e-mails directly without the need for any mail server as a host. The library can be compiled to a DLL file. One test program is also given to show all the mail exchanger records for any particular address. More information on DNS can be found from these RFCs. Rfc1034(http://www.ietf.org/rfc/rfc1034.txt) and rfc1035(http://www.ietf.org/rfc/rfc1035.txt). Once you got the MX record, you can directly opens its SMTP port, and can issue the SMTP commands. You may get more than one record for some sites. In that case do a sorting based on the preference. The lowest value is the most preferred address. The compile strings for both .cs files is included in the .cs files. Check out the test.cs file for a sample session mailing.
这是DNS Client的一个精简版本。它可以从一个DNS服务器上取回任意的IP地址的的MX (mail exchange) 记录。你可以使用这个MX记录直接发送电子邮件,而不需要任何邮件服务器作为一个主机。这个库可以编译为一个DLL文件。也提供了一个测试项目以显示给定特殊地址的所有 mail exchanger 记录。可以从这些RFC中提到更多的有关DNS的信息。
来源: http://c.ittoolbox.com/code/d.asp?d=1419&a=s |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
DnsLite |
 1.0  |
2004-03-29 |
下载 |
|
|