williamku87
Member
- Joined
- Jun 25, 2008
- Messages
- 7
- Programming Experience
- Beginner
how to validate the email address for vb.net?
thanks...
thanks...
Friend Const g_strRegexEmailPattern As String = "\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
Function GetMailAddress(ByVal address As String) As Net.Mail.MailAddress
Try
Return New Net.Mail.MailAddress(address)
Catch ex As Exception
MessageBox.Show(ex.Message, address)
End Try
Return Nothing
End Function