Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 September 12th, 2007, 06:38 PM
Authorized User
 
Join Date: Oct 2003
Location: , , .
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default check if email account exists


1,115 point Participant
 whisky
Joined on 09-25-2003, 12:52 AM
Posts 320
 Hi,



I have an application where users send individual emails to candidates. Is it possible to check if the email the candidate gave exists or not?

The candidate provides his email address over the phone so it could happen that the person who took his address typed it in incorrectly. I need to therefore check that the email exists and if it doesn't raise an error message to the user informing him that no such email account exists.

Thanks for the help.




 
Old September 12th, 2007, 07:31 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Short answer: no

More qualified answer: The only sure way of knowing an email address is bad is when you get a bounce from it. But that can take some time.

-Peter
 
Old September 13th, 2007, 07:02 PM
Authorized User
 
Join Date: Mar 2007
Location: , , .
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When the user gets the email address over the phone and types it in you can validate it to ensure the email address is in the correct format using regular expressions, this would pick up some typos but of course it doesn't stop the problem entirely because as long as the email address is in the correct format, even if it doesn't exist, then it will pass validation. You could get around this to some degree by having the user input the email address into two separate fields and then comparing the values those fields hold to ensure they are identical, again it will help avoid typos.





Similar Threads
Thread Thread Starter Forum Replies Last Post
check whether COM object exists EddyT C# 0 June 15th, 2007 04:10 AM
How to check if exists BEFORE the Insert rtr1900 Classic ASP Databases 0 December 20th, 2006 07:04 AM
check whether a particular session exists or not chayanvinayak PHP How-To 1 May 1st, 2006 04:09 PM
check first to see if the file exists crmpicco Classic ASP Professional 2 December 1st, 2005 12:34 PM
How to check if connection already exists Ciarano VB How-To 3 March 9th, 2004 10:24 AM





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