Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Reg:email domain Verification

Reg:email domain Verification

Scheduled Pinned Locked Moved C#
com
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    swethasri
    wrote on last edited by
    #1

    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

    E G 2 Replies Last reply
    0
    • S 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

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • E Ennis Ray Lynch Jr

        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.

        S Offline
        S Offline
        swethasri
        wrote on last edited by
        #3

        The following is the message displayed when tried to check gamil.com,yahoo.com etc., "A connection attempt failed because the connected party did not respond propertly after a period of time or established connection failed because connected host failed to respond".

        1 Reply Last reply
        0
        • S 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

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          I think that those SMTP servers only accept connections from known mail servers.

          Despite everything, the person most likely to be fooling you next is yourself.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups