-
February 2nd, 2011, 06:00 AM
#1
Check Valid e-mail address
Hi !
I am developing client application I store client details with e-mail address. but I give permission to users to entry valid e-mail address of every client, In that case I will check valid e-mail address for that how to check the given valid e-mail address please give me a suggestion.
Thanking You
Debasis
-
February 2nd, 2011, 11:45 AM
#2
Re: Check Valid e-mail address
Found this on the web.
Code:
Try
Dim BB As System.Text.RegularExpressions.Match = System.Text.RegularExpressions.Regex.Match(Me.tbEMailTo.Text, "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum)")
If Not BB.Success Then
MessageBox.Show("Please enter a valid EMail address.")
Exit Sub
End If
Catch ex As Exception
End Try
-
February 5th, 2011, 08:24 AM
#3
Re: Check Valid e-mail address
You can check for proper fomratting easy enough but that still does not mean it is a valid email address.
For example I could enter MyFakeEmail@FakeEmail.Com
As far as I know the only way to insure a valid email is entered is to send a confirmation to the email address and get a reply.
Always use [code][/code] tags when posting code.
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
|