Reg:email domain Verification
-
Hi all, I want to check the email address against SMTP domain verification. I have used the following code.but it's not getting the response from the domains gmail.com,yahoo.com,google .com. so it shows that domain is not valid. try { string[] host = (textBox1.Text.Trim().Split('@')); string hostname = host[1]; IPHostEntry IPhst = Dns.GetHostByName (hostname); IPEndPoint endPt = new IPEndPoint(IPhst.AddressList[0], 25); Socket s = new Socket(endPt.AddressFamily, SocketType.Stream, ProtocolType.Tcp); s.Connect(endPt); MessageBox.Show("Exists"); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString ()); } Can anyone tell me the solution for this. Thanks in advance swethasri
-
Hi all, I want to check the email address against SMTP domain verification. I have used the following code.but it's not getting the response from the domains gmail.com,yahoo.com,google .com. so it shows that domain is not valid. try { string[] host = (textBox1.Text.Trim().Split('@')); string hostname = host[1]; IPHostEntry IPhst = Dns.GetHostByName (hostname); IPEndPoint endPt = new IPEndPoint(IPhst.AddressList[0], 25); Socket s = new Socket(endPt.AddressFamily, SocketType.Stream, ProtocolType.Tcp); s.Connect(endPt); MessageBox.Show("Exists"); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString ()); } Can anyone tell me the solution for this. Thanks in advance swethasri
What kind of error are you getting.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego. -
What kind of error are you getting.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego. -
Hi all, I want to check the email address against SMTP domain verification. I have used the following code.but it's not getting the response from the domains gmail.com,yahoo.com,google .com. so it shows that domain is not valid. try { string[] host = (textBox1.Text.Trim().Split('@')); string hostname = host[1]; IPHostEntry IPhst = Dns.GetHostByName (hostname); IPEndPoint endPt = new IPEndPoint(IPhst.AddressList[0], 25); Socket s = new Socket(endPt.AddressFamily, SocketType.Stream, ProtocolType.Tcp); s.Connect(endPt); MessageBox.Show("Exists"); } catch (Exception ex) { MessageBox.Show(ex.Message.ToString ()); } Can anyone tell me the solution for this. Thanks in advance swethasri