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?
 
pateljituCommented:
Here is a good example for email validation:

http://classicasp.aspfaq.com/email/how-do-i-validate-an-e-mail-address.html
<%
Function isEmailValid(email)
        Set regEx = New RegExp
        regEx.Pattern = "^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w{2,}$"
        isEmailValid = regEx.Test(trim(email))
    End Function
isEmailValid("some@email.com")
%>
0
 
Bob SchneiderCo-OwnerAuthor Commented:
Awesome!  Thanks!!
0
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.