473,563 Members | 2,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.c om, 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 2134
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*****@micros oft.com> wrote in message
news:u3******** ******@TK2MSFTN GP09.phx.gbl...
Is there a way to query a domain for smtp server? For instance, I am
sending mail to jo*@microsoft.c om, 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*****@micros oft.com> wrote in message
news:u3******** ******@TK2MSFTN GP09.phx.gbl...
Is there a way to query a domain for smtp server? For instance, I am
sending mail to jo*@microsoft.c om, 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
3258
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 returned. How can all of a user's Exchange SMTP email addresses be returned? Thanks,
0
1316
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 same e-mail address for From: and To:, my personal e-mail address on my ISP. I do not have an e-mail server set up on my machine, though I do have...
2
2847
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 validity of the domain - for this do i need to connect to domain name( example yahoo.com , port 25 )using TCP/Ip to the server and then check to see if i...
6
2091
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 I don't know what that means or refers to. I imagine I would have to use something that was tied to me specifically, but tied to what? My computer?...
1
1704
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 running on the same server as the Exchange Server. Environment is W2003 SP2 Exchange 2003 SP1. Allowing the email to bounce is not an option. Thanks...
4
3228
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 email for each record. The query has the name of the employee and the supervisor, the title of the work and so on. I want the employee and supervisor...
7
7723
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 free edition for anti-virus. I use an ISP provider from my country and according to them I do not need to perform authentication while sending...
4
2183
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 getting the server name is : mapird.lpszAddress = "<server name>"; Quotes are required here
10
6881
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
7665
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.