Click here to Skip to main content
15,902,492 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Communicate with SerialPort Use C# Programming? Pin
Corinna John18-Feb-04 21:24
Corinna John18-Feb-04 21:24 
GeneralRe: How to Communicate with SerialPort Use C# Programming? Pin
eggie519-Feb-04 1:48
eggie519-Feb-04 1:48 
GeneralRe: How to Communicate with SerialPort Use C# Programming? Pin
Corinna John19-Feb-04 2:41
Corinna John19-Feb-04 2:41 
Generalopening a child form from a dialog Pin
visiontec18-Feb-04 15:26
visiontec18-Feb-04 15:26 
GeneralRe: opening a child form from a dialog Pin
Bill Dean19-Feb-04 1:40
Bill Dean19-Feb-04 1:40 
GeneralRe: opening a child form from a dialog Pin
visiontec19-Feb-04 11:45
visiontec19-Feb-04 11:45 
GeneralRe: opening a child form from a dialog Pin
Bill Dean19-Feb-04 17:46
Bill Dean19-Feb-04 17:46 
GeneralRecord sound from sound card Pin
suki_yip18-Feb-04 15:21
suki_yip18-Feb-04 15:21 
GeneralRe: Record sound from sound card Pin
Heath Stewart19-Feb-04 4:43
protectorHeath Stewart19-Feb-04 4:43 
GeneralEos: aspect-oriented extension for C# Pin
Hridesh Rajan18-Feb-04 15:08
Hridesh Rajan18-Feb-04 15:08 
GeneralAutomate Legacy 3270 Applications Pin
John Kuhn18-Feb-04 14:36
John Kuhn18-Feb-04 14:36 
Generalpostback problem Pin
pardu18-Feb-04 14:34
pardu18-Feb-04 14:34 
GeneralRe: postback problem Pin
Nick Parker18-Feb-04 18:17
protectorNick Parker18-Feb-04 18:17 
General"Minimize to tray" button in title bar Pin
josefg18-Feb-04 12:30
josefg18-Feb-04 12:30 
GeneralRe: "Minimize to tray" button in title bar Pin
Heath Stewart19-Feb-04 4:38
protectorHeath Stewart19-Feb-04 4:38 
GeneralRe: "Minimize to tray" button in title bar Pin
John Fisher19-Feb-04 5:16
John Fisher19-Feb-04 5:16 
GeneralControlling file permissions Pin
james-cxx18-Feb-04 12:05
james-cxx18-Feb-04 12:05 
GeneralRe: Controlling file permissions Pin
Russell Morris18-Feb-04 12:27
Russell Morris18-Feb-04 12:27 
GeneralRe: Controlling file permissions Pin
james-cxx19-Feb-04 6:51
james-cxx19-Feb-04 6:51 
GeneralWriting to MXL File Pin
Mr_Mike18-Feb-04 11:27
Mr_Mike18-Feb-04 11:27 
GeneralRe: Writing to MXL File Pin
Kentamanos18-Feb-04 12:50
Kentamanos18-Feb-04 12:50 
Generalgetting MX servers for mail validation Pin
blakeb_118-Feb-04 10:41
blakeb_118-Feb-04 10:41 
Hello,

I'm trying to implement an e-mail validation program for a large mailing list, and I've run into a few problems.

So far, I have code that correctly checks all the syntaxes, and I have code that will check if an address is valid when it is given a list of mail exchanges, however, I can't get my code that actually retrieves the MX servers to work.

Does anyone have any code for MX lookup? I found the code I'm currently using at: http://groups.google.com/groups?selm=eMOLVL2WDHA.652%40tk2msftngp13.phx.gbl&oe=UTF-8&output=gplain

I can't tell if there is something wrong with the code or if I am just not using it correctly. Here is how I am trying to intialize the DnsLite class:

<br />
ArrayList mxRecords = new ArrayList();<br />
<br />
//hostname is the domain, such as hotmail.com<br />
IPHostEntry IPhst = Dns.Resolve(hostname);<br />
<br />
DnsLib.DnsLite dnsStruct = new DnsLib.DnsLite();<br />
			<br />
ArrayList dnsList = new ArrayList();<br />
for(int j = 0; j < IPhst.AddressList.Length; j++)<br />
{<br />
  dnsList.Add(IPhst.AddressList[j].ToString());<br />
}<br />
<br />
dnsStruct.setDnsServers(dnsList);<br />
mxRecords = dnsStruct.getMXRecords(hostname);


This doesn't seem to be working correctly. Does anyone know if this code looks like it should work, or if there is better code examples of MX lookups anywhere that I look at.

Thanks, Blake
GeneralRe: getting MX servers for mail validation Pin
Heath Stewart18-Feb-04 11:11
protectorHeath Stewart18-Feb-04 11:11 
GeneralStrange remoting issue Pin
lustuyck18-Feb-04 9:40
lustuyck18-Feb-04 9:40 
GeneralRe: Strange remoting issue Pin
Heath Stewart19-Feb-04 3:34
protectorHeath Stewart19-Feb-04 3:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.