The Forgotten Art of Email Address Verification
page 3 of 5
by Joshua Finer
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 20447/ 136

2. Base Domain Level Validation
This email validation is a step up from Base Level Validation, but still extremely inadequate. This level of validation only requires that the domain name of the email address be a valid registered domain. Many domain names are registered but cannot receive email. Additionally, the majority of registered domain names are not currently active mail servers. This is usually implemented as code or a component that does domain name registration lookups or possibly even standard DNS lookups. For purposes of example, let's say you choose to use a DNS lookup component. After installing on the server, you need to first make sure the DLL is referenced in View-->References or Project-->References. Keep in mind that most DNS objects are expecting a domain name and not an email address. The following code is a generic example of how you might implement a DNS component for email validation:
	set DNSobject = Server.CreateObject("CompanyABC.DNS")
	emailaddress = Request.Form("emailaddress")
	thedomainname =Mid(emailaddress,InStr(1,emailaddress,"@",vbTextCompare)+1,Len(emailaddress))
	DNSobject.domain = thedomainname
	DNSobject.server = "XXX.XXX.XXX.XXX"
	goodorbad = DNSojbect.dolookup

	If goodorbad = "" Then	'Keep in mind some DNS object may return something other than ""
		Response.Redirect("badaddress.html")
	Else
		<continue form processing>
	End If

View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 3 and 2 and type the answer here:

User Comments

Title: Great & Help Full   
Name: Atul Khandelwal
Date: 3/28/2007 3:09:57 AM
Comment:
This is surely a good article but you could have atleast explained the last header width a snippet
this articla is really good and help full
Title: great   
Name: Manmeet
Date: 8/4/2006 7:40:50 PM
Comment:
The article is really very good
Title: Good   
Name: Gaurav
Date: 6/10/2006 2:36:39 AM
Comment:
This is surely a good article but you could have atleast explained the last header width a snippet
Title: thanks for the info!!   
Name: BH
Date: 5/7/2006 11:00:55 AM
Comment:
thanks!
Title: Intelligent Web Search   
Name: Po
Date: 7/14/2005 1:59:25 AM
Comment:
ddd

Product Spotlight
Product Spotlight 
Learn More
.NET Tools
asp.net shopping cart
asp.net chart control






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 7/5/2008 7:35:53 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search