" & objXML.parseError.errorCode response.write "
Please try your request again.
" & url response.end End If displayXML = objXML.xml displayXML = replace(displayXML,"
" response.write "Request:
" & replace(server.HTMLencode(url),",",", ") & "
(spaces added to URL for word wrapping purposes)
" response.write "Raw Response XML:
" set objTemp = objXML.SelectNodes("validation/email[success=1]") response.write "
"
response.write "Valid Email Addresses:
"
for each node in objTemp
response.write "" & node.Attributes.getNamedItem("address").Text & "
"
response.write " Syntax: " & node.selectSingleNode("syntax").text & "
" &_
" Domain: " & node.selectSingleNode("domain").text & "
" &_
" SMTP: " & node.selectSingleNode("smtp").text & "
" &_
" Mailbox: " & node.selectSingleNode("mailbox").text & "
"
next
response.write "
"
response.write "Invalid Email Addresses:
"
for each node in objTemp
response.write "" & node.Attributes.getNamedItem("address").Text & "
"
response.write " Syntax: " & node.selectSingleNode("syntax").text & "
" &_
" Domain: " & node.selectSingleNode("domain").text & "
" &_
" SMTP: " & node.selectSingleNode("smtp").text & "
" &_
" Mailbox: " & node.selectSingleNode("mailbox").text & "
"
next
response.write "
You can test the online email validation service here. Enter up to 3 comma seperated Email addresses in the text box. Select the Validation Level. Each Validation Level is inclusive of the ones before it and all validation results will be returned for each level that is checked. For instance checking SMTP level will also check the domain and the syntax and will return True/False validation results for those checks but will not check and therefore will not return a value for the Mailbox validation. The overall performance of this script depends on the level of checking you choose and the response times of the email domains validated. In Production you would have to decide how much time you wanted to spend on this operation and choose your validation level based on that.
- Syntax - Check email syntax only.
- Domain - Checks that the email address domain exists and is reachable.
- SMTP - Checks that the email address domain has an SMTP service running on it.
- Mailbox - Checks that the SMTP server on this domain has a mailbox for this address.