NCS Logo - Click for home page Northstar Developer Center
Platforms
All Platforms
.NET Framework (1.x - 4.x)
Active Server Pages
ASP.NET
C#
SQL Server
VB.NET
Visual Basic

Keywords
.NET Data Types
.NET E-mail
.NET Events
.NET Functions
.NET Object Programming
.NET System.Configuration
.NET System.Diagnostics
.NET System.IO
.NET System.Net
.NET System.Net.Sockets
Active Data Objects
ASP Architecture
ASP Black Belt
ASP Built-in Functions
ASP Built-in Objects
ASP Debugging
ASP Performance
ASP Security
ASP Syntax
ASP.NET Authentication
ASP.NET Controls
ASP.NET Data Access
ASP.NET Features
ASP.NET Master Pages
ASP.NET Page Events
ASP.NET Security
ASP.NET ViewState
Atom
Certifications
COM, DCOM, COM+
Data Access
E-Mail
Errors
Exporting Data
HTML Tips
IIS
Object-Oriented Programming
RSS
SQL
Uncategorized ASP Tips
VB API Programming
VB Forms
VB Syntax
XML

Book Support
Visual Basic 6 Bible
ASP Bible
ASP Weekend Crash Course
ASP.NET At Work
Creating Web Services

Simple E-Mail Validation

Written by Eric Smith, Northstar Computer Systems LLC

A common question when accepting input data is how to validate an e-mail address. There are a couple of steps in the validation. First of all, you have to check if the format of the e-mail address is correct. This is strictly a text checking issue. E-mail addresses cannot have spaces in them, to start with. The second check is to make sure that at least one period character exists in the string. This check may need to be skipped if your e-mail addresses are like address@server, instead of address@server.com. The final check is to make sure that an AT symbol is in the address.

The second type of check involves actually attempting delivery of the e-mail by checking the DNS records involved in sending e-mail. There are a number of components available that will do this for you and help eliminate dummy e-mail addresses that people might enter. You can see a list of these components at http://asp101.com in their Components section.

Keywords: [ Uncategorized ASP Tips ]

Publication Date: 2/10/2001