Email domain verification code not working
-
i have used the following code to verify email domain given in code project articles but it was not working,can u please sort my problem out.....
public static bool Send(string aa)
{
string[] host = (aa.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); //Attempting to connect
}
thanks in advance....
Maniiiiiiiiiiiiiii
-
i have used the following code to verify email domain given in code project articles but it was not working,can u please sort my problem out.....
public static bool Send(string aa)
{
string[] host = (aa.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); //Attempting to connect
}
thanks in advance....
Maniiiiiiiiiiiiiii
-
Could you specify what you mean by "not working"? Does it compile? Does it run? What happens? Do you get any kind of error message?
Despite everything, the person most likely to be fooling you next is yourself.