How do I make my app check if something is a valid e-mail address? you know like "*@*.*"?
How do I make my app check if something is a valid e-mail address? you know like "*@*.*"?
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"
hey dude I tryed:
If txtRegEmail.Text Like "*@*.*" Then
MsgBox "VALID!!!"
Else
MsgBox "INVALID!!!!"
End If
and it worked like a charm!
:D
A bit more...take a look at this link.
http://www.vbworld.com/tips/tip519.html
but , I can enter like this "@.". Is it valid?
so ,I use "?*@?*.?*"
ok.
Perhaps a better way of validating is using winsock to see if you can send an email to the said address.