473,796 Members | 2,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Checking email address

JD
Within asp.net I know it is possible to validate that a user has entered
in a correctly formatted email address. However, what I want to be able
to do is to verify that the email address entered is actually going to
work. As in that it will receive email.

I have been looking at one way to do this, and that is to see if the
domain part of the email address is a valid domain, but I was wondering
if there was a better way of checking to see if the email address
entered is actually valid.

Any suggestions appreciated on this subject. Thanks.

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 19 '05 #1
2 1374
I think that may be you can ask the SMTP server. you may need to read some
RFC on SMTP protocol.

alex.
"JD" <wo**@dalys.u s> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Within asp.net I know it is possible to validate that a user has entered
in a correctly formatted email address. However, what I want to be able
to do is to verify that the email address entered is actually going to
work. As in that it will receive email.

I have been looking at one way to do this, and that is to see if the
domain part of the email address is a valid domain, but I was wondering
if there was a better way of checking to see if the email address
entered is actually valid.

Any suggestions appreciated on this subject. Thanks.

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Nov 19 '05 #2
After experimenting with all sorts of convoluted approaches I first validate
the format (regular expression) and if valid I send an email to the
submitted address that includes a link that verifies that the email was
received. It works for me.

Wayne

"JD" <wo**@dalys.u s> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Within asp.net I know it is possible to validate that a user has entered
in a correctly formatted email address. However, what I want to be able
to do is to verify that the email address entered is actually going to
work. As in that it will receive email.

I have been looking at one way to do this, and that is to see if the
domain part of the email address is a valid domain, but I was wondering
if there was a better way of checking to see if the email address
entered is actually valid.

Any suggestions appreciated on this subject. Thanks.

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
5589
by: unndunn | last post by:
I'm trying to design a regular expression that matches (using preg_match()) when a string is a well-formed Email address. So far I have this: /^+@+\.{2,4}$/i I got that from reguar-expressions.info. But PHP keeps complaining of "Unknown modifier 'Z'". For the life of me I can't figure out how 'Z' is a modifier. Can anyone help? Thanks much.
9
4969
by: news | last post by:
There's all kinds of ways to validate an email address to make sure it's well formed and whatnot, but what about checking to see if it's a valid e-mail account? Like how you can use checkdnsrr() to check to see if a URL is valid. I know finger used to be used at one time, no? But server block finger requests, and I'm not sure many e-mail accounts out there are even fingerable type accounts anyway. Thanks for any suggestions!
18
1587
by: shank | last post by:
I'm trying to qualify email addresses. Is there any reason why the following line would not catch an email address beginning with "www." ? ElseIf Left(Session("em"),4) = "www." Then I put in a dummy email address: www.mydomain@aol.com and it goes through.... <%=Left(Session("em"),4)%> does reflect "www." why? thanks!
11
2494
by: Phil Amey | last post by:
In a web based form I am able to make sure that there is text in an input field but I want to force the user into inputting a valid email address, one that has @ in the address How can I modify this JavaScript below to enable this ? if (document.form1.EMAIL.value == ""){ alert("Please complete the E-Mail: field") document.form1.EMAIL.focus() validFlag = false return validFlag
30
2257
by: Michael B Allen | last post by:
I have a general purpose library that has a lot of checks for bad input parameters like: void * linkedlist_get(struct linkedlist *l, unsigned int idx) { if (l == NULL) { errno = EINVAL; return NULL; }
99
5202
by: Mikhail Teterin | last post by:
Hello! Consider the following simple accessor function: typedef struct { int i; char name; } MY_TYPE; const char *
7
1561
by: pinkfloydhomer | last post by:
When a function is given a pointer, it is tempting to do an assert on the pointer to see if it is not NULL. But even if it is not NULL, it could still be invalid or wrong. What we really want to know is that it points to memory that we have access to. How about doing this: void f(int* p) { assert(*((char*)p) == *((char*)p); }
26
2822
by: libsfan01 | last post by:
Hi all! Can anyone show me how to check and email field on a form for the existence of these two characters. Kind regards Marc
10
8340
by: frakie | last post by:
Hi 'body, is there a method to check if a pointer is pointing a freed memory location?
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9525
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10452
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.