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
|