I want a function to test that a string is formatted like an email address.
What comes built-in with the .NET framework to do this?
This works:
Public Function ValidateEmail(ByVal strCheck As String) As Boolean Try Dim vEmailAddress As New System.Net.Mail.MailAddress(strCheck) Catch ex As Exception Return False End Try Return True End Function