|
-
May 27th, 2001, 04:58 PM
#1
Thread Starter
Addicted Member
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
-
May 27th, 2001, 05:09 PM
#2
_______
<?>
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
-
May 27th, 2001, 05:14 PM
#3
Thread Starter
Addicted Member
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
-
May 27th, 2001, 05:35 PM
#4
_______
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
May 27th, 2001, 05:57 PM
#5
A bit more...take a look at this link.
http://www.vbworld.com/tips/tip519.html
-
May 27th, 2001, 06:36 PM
#6
New Member
but , I can enter like this "@.". Is it valid?
so ,I use "?*@?*.?*"
ok.
-
May 27th, 2001, 08:01 PM
#7
Registered User
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|