Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Email Address Validation

Posted on 2011-10-20
2
Medium Priority
?
358 Views
Last Modified: 2013-12-13
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!
0
Comment
Question by:Bob Schneider
2 Comments
 
LVL 15

Accepted Solution

by:
pateljitu earned 2000 total points
ID: 37002698
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
 

Author Closing Comment

by:Bob Schneider
ID: 37002973
Awesome!  Thanks!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today as you open your Outlook, you witness an error message: “Outlook is using an old copy of your Outlook Data File…”. Probably, Outlook is accessing an old OST file.
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question