How to find SMTP server name on network?

  • Thread starter Thread starter David Hoffer
  • Start date Start date
D

David Hoffer

In a NET application I would like to find the relay SMTP server name. I was
thinking of some NET equivalent of nslookup, set the type to mx, and then
get the mail exchanger name. How can I do this with NET APIs?
 
Thanks for the reply. However as I understand this code at the site you
mentioned, it does not seem to what I need. (It expects you to know both
the DNS server and Host name. )

In my application, I do not know where the program will be run. I want to
query the network for the (relay) SMTP server name so I can use this name
with the SmtpMail NET class. How can I do this?

-dh
 
Back
Top