Email Address Validation

I want a simple asp email address validation script.  I really don't need to ensure that the email got to it's intended recipient.  I just need to know that the address won't cause my asp to crash if it is used in the cod sys .Send line.  Any help would  be much appreciated!
Bob SchneiderCo-OwnerAsked:
Who is Participating?
Here is a good example for email validation:
Function isEmailValid(email)
        Set regEx = New RegExp
        regEx.Pattern = "^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w{2,}$"
        isEmailValid = regEx.Test(trim(email))
    End Function
Bob SchneiderCo-OwnerAuthor Commented:
Awesome!  Thanks!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.