Results 1 to 7 of 7

Thread: How do I make my app check if something is a valid e-mail address?

  1. #1

    Thread Starter
    Addicted Member Frankie902's Avatar
    Join Date
    Feb 2001
    Location
    Lindenwold, NJ, USA
    Posts
    217

    How do I make my app check if something is a valid e-mail address?

    How do I make my app check if something is a valid e-mail address? you know like "*@*.*"?
    Using:
    Visual Studio .Net Enterprise
    Visual Basic 6.0 Enterprise

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    You can't check the validity of the address as [email protected] will verify....but you can see if it has a few requirements of an email address such as @ and . are present.

    IF emailstring like "*@*" then Msgbox "@ involved"
    IF emailstring like "*.*" then Msgbox "./ involved"
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Addicted Member Frankie902's Avatar
    Join Date
    Feb 2001
    Location
    Lindenwold, NJ, USA
    Posts
    217
    hey dude I tryed:
    If txtRegEmail.Text Like "*@*.*" Then
    MsgBox "VALID!!!"
    Else
    MsgBox "INVALID!!!!"
    End If

    and it worked like a charm!
    Using:
    Visual Studio .Net Enterprise
    Visual Basic 6.0 Enterprise

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  5. #5
    Matthew Gates
    Guest
    A bit more...take a look at this link.
    http://www.vbworld.com/tips/tip519.html

  6. #6
    New Member
    Join Date
    May 2001
    Posts
    2
    but , I can enter like this "@.". Is it valid?

    so ,I use "?*@?*.?*"

    ok.

  7. #7
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    Perhaps a better way of validating is using winsock to see if you can send an email to the said address.

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