Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 23rd, 2004, 10:23 PM
Authorized User
Join Date: Nov 2003
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to eapsokha
Default Verify for Valid E-mail address

I want to make sure that the e-mail address user entered is valid even it consists of "@" sign before insert into database. How can I do that?

Many thanks

Mr. Sokha Eap
UNDP Cambodia
Old February 23rd, 2004, 10:41 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts

You can find a few different examples at:


They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
Old February 24th, 2004, 12:29 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

The best way to valid an email address beyond just the structure of an address is to actually generate an email that the use must receive in order for the email address to be used. You'll still have to save the data to the DB, but sending a confirmation mail is a surefire way of validating it. You could insert the email address as "pending" and then they can click a link or enter some code that you send them to validate the address.

Work smarter, not harder.

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting from address in outlook mail item bishnupokhrel Pro VB 6 1 January 26th, 2011 10:28 AM
Changing the senders email address in the mail() rinventive Beginning PHP 1 May 23rd, 2006 10:24 PM
Valid Email Address...... muskaanbajaj VB.NET 1 November 22nd, 2005 11:38 AM
E-mail Address Changes Ben Horne Forum and Wrox.com Feedback 1 April 1st, 2004 04:43 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.