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. Web Development
  3. ASP.NET
  4. Email domain verification code not working

Email domain verification code not working

Scheduled Pinned Locked Moved ASP.NET
help
3 Posts 2 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.
  • L Offline
    L Offline
    Learning IT
    wrote on last edited by
    #1

    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

    G 1 Reply Last reply
    0
    • L Learning IT

      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

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

      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.

      L 1 Reply Last reply
      0
      • G Guffa

        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.

        L Offline
        L Offline
        Learning IT
        wrote on last edited by
        #3

        exception is thrown which shows that domain does not exists even in case of yahoo.com,gmail.com

        Maniiiiiiiiiiiiiii

        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