Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email Validation

Status
Not open for further replies.

cfk

Programmer
Jan 16, 2002
60
GB
I'm looking for code to validate email address'.
I'm looking for more than just checking the syntax
( an @ exists and a domain extension exists ).
What i'm really after is a componant/asp method that
will tell me if the email is in use.
I've found a few componants for sale $100 aprox.
I don't mind paying around $30 once.
 
search on 4GuysFromRolla.com

There is definately a method out there. Rushi Shroff Rushi@emqube.com
"Life is beautiful."
 
penny1.gif
penny1.gif
 
it's difficult to develope your own:

you can buy a cheap component here..(50$)

But if you want to do it yourself then you will need to do an nslookup .. use aspexec from to execute
a shell.. or use the wsh shell object..



also an easy and practical way you can use xmlhttp to post an fetch such data from .. when you get
the data in you variable search for the info after the validation results word:


Validation results
Success <----

canonical address: <sakr_m@hotmail.com>

MX records preference exchange IP address (if included)
5 mx08.hotmail.com [64.4.49.7]
5 mx07.hotmail.com [65.54.236.7]
5 mx06.hotmail.com [64.4.55.7]
5 mx05.hotmail.com [64.4.56.199]
5 mx04.hotmail.com [64.4.56.135]

....



How do I read the contents of a remote web page?
You can include static txt and HTML files from remote servers by using a component (such as AspHTTP
( ASPTear ( or VB's built in InetCtrls) to parse the remote URL's content.

You can also try this method out, it uses the MSXML objects which are installed with Windows 2000 (or
you can download them here ( for other operating systems):

<%
url = &quot; set xmlhttp = server.CreateObject(&quot;Microsoft.XMLHTTP&quot;)
xmlhttp.open &quot;GET&quot;, url, false
xmlhttp.send &quot;&quot;
Response.write xmlhttp.responseText
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top