Results 1 to 5 of 5

Thread: Hotmail Email Validation

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Hotmail Email Validation

    Hey ,

    i wanna check if it's a hotmail email something like this : [email protected]
    which hotmail.com is the domain

    i use this RegularExpressions to check if it's valid

    Code:
     If (System.Text.RegularExpressions.Regex.IsMatch(txtemail.Text, "^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$") = True) Then
                MsgBox("Yep")
            Else
                MsgBox("Not")
            End If
    i wanna check if it's valid hotmail.com account

    Thanks

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Hotmail Email Validation

    Replace everything after the @ in your regex with hotmail.com

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Hotmail Email Validation

    Hey,

    If I am not mistaken, the OP wants to verify that the hotmail address is actually real, i.e. if you were to send an email to [email protected], would it actually get there, i.e. has someone created that email address.

    I am not aware of an "easy" way of verifying whether an email address actually exists, just that the email address is well-formed.

    Gary

  4. #4
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Hotmail Email Validation

    To check for the existence of an email account, you have to establish a connection to the server and send an RCPT command using smtp protocol. Read the server's reply and determine if the account is valid or not.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Hotmail Email Validation

    Quote Originally Posted by stanav View Post
    To check for the existence of an email account, you have to establish a connection to the server and send an RCPT command using smtp protocol. Read the server's reply and determine if the account is valid or not.
    Yip, so not an "easy" thing to do

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width