473,388 Members | 1,340 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Query domain for SMTP address

Is there a way to query a domain for smtp server? For instance, I am
sending mail to jo*@microsoft.com, I want to contact smtp server at
microsoft.com but smtp server is subdomain of microsoft.com, which I am
unaware of. When I perform Dns.Resolve on microsoft.com, i don't get ip of
smtp server. How can I get ip of smtp.microsoft.com?
Nov 17 '05 #1
2 2128
I don't know how to use dns.resolve, but.....
using nslookup:

set type=mx

does the trick. I suspect it's something similar.

"Roger" <so*****@microsoft.com> wrote in message
news:u3**************@TK2MSFTNGP09.phx.gbl...
Is there a way to query a domain for smtp server? For instance, I am
sending mail to jo*@microsoft.com, I want to contact smtp server at
microsoft.com but smtp server is subdomain of microsoft.com, which I am
unaware of. When I perform Dns.Resolve on microsoft.com, i don't get ip of smtp server. How can I get ip of smtp.microsoft.com?

Nov 17 '05 #2
The Dns class does not do what you want. However, this article may be
useful:

http://www.codeproject.com/csharp/DnsLookupDotNet.asp
--
Truth,
James Curran
[erstwhile VC++ MVP]

Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
"Roger" <so*****@microsoft.com> wrote in message
news:u3**************@TK2MSFTNGP09.phx.gbl...
Is there a way to query a domain for smtp server? For instance, I am
sending mail to jo*@microsoft.com, I want to contact smtp server at
microsoft.com but smtp server is subdomain of microsoft.com, which I am
unaware of. When I perform Dns.Resolve on microsoft.com, i don't get ip of smtp server. How can I get ip of smtp.microsoft.com?

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jim Adams | last post by:
In an Exchange environment, a user can have several SMTP email addresses in addition to their default SMTP address. When querying the "mail" property of a user, only the default SMTP address is...
0
by: Mark Miller | last post by:
I'm puzzled by this situation. I'm running on Windows XP Pro 2002 SP 2. I started on an ASP.Net project, initially using the standard SmtpServer and MailMessage classes. For testing, I used the...
2
by: ArunPrakash | last post by:
Hi All, I have a case where i need to validate if the email address is valid before i send a mail. for this there are 2 parts.. * check the format of mail address - this is done * check the...
6
by: John Salerno | last post by:
If I want to write a cgi script that reads the contents of an HTML form and emails it to me, what would I use as the host parameter for my SMTP instance? The example in the docs is 'localhost', but...
1
by: Michael D. Ober | last post by:
I am writing an application that needs to email to specific users on our Exchange server and need to query it to see if the SMTP address I will be sending to exists. The application will be...
4
by: douglaswade | last post by:
I am new to Access, but I find this answer a little difficult to understand. I have an access query that list late work, I want to run the query and let say the results is ten records. I want one...
7
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee...
4
by: sai14 | last post by:
Hi All , Can anyone help me reagrding MAPI send mail logic. I am supposed to get the SMTP server name from an ini file and have to send a mail through this server name. The syntax for...
10
by: Mike Miller | last post by:
Hi, Am wanting to send email with php and need to access the global outlook address book. Are there any examples/tutorials on how to do this? M
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.