Sunday, November 28, 2010

Validating email address via SMTP

Just pass email address to be validate...

///////////////////////////////////////
string[] host = (address.Split('@'));
string hostname = host[1];
IPHostEntry IPhst = Dns.Resolve(hostname);
IPEndPoint endPt = new IPEndPoint(IPhst.AddressList[0], 25);
Socket s= new Socket(endPt.AddressFamily,
SocketType.Stream,ProtocolType.Tcp);
s.Connect(endPt);
//////////////////////////////////////

Ankur As a Dotnet Doctor

Hi..
Welcome to my blog...

I am an software developer. This blog contains .net coding and concepts. I hope you will get here whatever you are looking for....

Thankyou...

Saturday, May 15, 2010

coming soon with medicines