I realize this is not solely an ASP question, but I thought you guys might
know the answer and I couldn't find anywhere else to post this. If you have
suggestions for this I am more than happy to post somewhere else.
How can I, using ASP code, validate whether or not an email address is a
real one? For example, if I have the email address called ro*@rogers.net
how can I determine if it is real? 10 1956
Could just do a general patter search
some alpha chars + an @ symbol + some alpha chars + a fullstop followed by 2
or 3 letters
that' catch most of it i guess
"michaaal" <re******@veriz on.net> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. . I realize this is not solely an ASP question, but I thought you guys might know the answer and I couldn't find anywhere else to post this. If you
have suggestions for this I am more than happy to post somewhere else.
How can I, using ASP code, validate whether or not an email address is a real one? For example, if I have the email address called ro*@rogers.net how can I determine if it is real?
michaaal wrote: I realize this is not solely an ASP question, but I thought you guys might know the answer and I couldn't find anywhere else to post this. If you have suggestions for this I am more than happy to post somewhere else.
How can I, using ASP code, validate whether or not an email address is a real one? For example, if I have the email address called ro*@rogers.net how can I determine if it is real?
I had the same question 6 months ago, and came to the conclusion here are 3 levels
to this:
1) To do a regexp on the email to determine if it matches syntax for a valid email
address.
Note: To really get the most fine-grained results you'd have to tokenize the
email address according to the RFC. You'd be surprised what's a valid email, and
what's not.
2) Check the MX records of the domain of the email to make sure it's a valid domain,
and is accepting email.
3) Actually connect to the MX in question, and ask the server if it's an address.
There a few options. If you want to use VBScript there are a few tutorials on the
internet... but they aren't nearly as well defined as the commercial offerings. I
bought http://www.hexillion.com/hg/HexValidEmail/, and it's great. It's simple...
and pretty cheap. For how much time I saved it was worth it.
You could use PerlScript in the ASP environment, and Perl has many modules that
effeciently do all three of these things, and they are free. So if you have
perlscript on your system and know how to install modules, go to http://search.cpan.org and figure out which ones you'll need.
Eric
"Eric Gibson" wrote in message
news:JX******** ********@bignew s6.bellsouth.ne t...
: michaaal wrote:
: > I realize this is not solely an ASP question, but I thought you guys
: > might know the answer and I couldn't find anywhere else to post this.
: > If you have suggestions for this I am more than happy to post
: > somewhere else.
: >
: > How can I, using ASP code, validate whether or not an email address
: > is a real one? For example, if I have the email address called
: > ro*@rogers.net how can I determine if it is real?
:
: I had the same question 6 months ago, and came to the conclusion here are
3 levels
: to this:
:
: 1) To do a regexp on the email to determine if it matches syntax for a
valid email
: address.
:
: Note: To really get the most fine-grained results you'd have to
tokenize the
: email address according to the RFC. You'd be surprised what's a valid
email, and
: what's not.
:
: 2) Check the MX records of the domain of the email to make sure it's a
valid domain,
: and is accepting email.
:
: 3) Actually connect to the MX in question, and ask the server if it's an
address.
:
: There a few options. If you want to use VBScript there are a few tutorials
on the
: internet... but they aren't nearly as well defined as the commercial
offerings. I
: bought http://www.hexillion.com/hg/HexValidEmail/, and it's great. It's
simple...
: and pretty cheap. For how much time I saved it was worth it.
:
: You could use PerlScript in the ASP environment, and Perl has many modules
that
: effeciently do all three of these things, and they are free. So if you
have
: perlscript on your system and know how to install modules, go to
: http://search.cpan.org and figure out which ones you'll need.
This still won't be a definite since there are catch-all email accounts now.
Try it with AOL, and you'll see all email addresses respond as valid.
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Where it is in the whole process ?
Sometimes a mail is send at this address and the user have a link to confirm
its subscription. Depends what is the context...
Patrice
--
"Roland Hall" <nobody@nowhere > a écrit dans le message de
news:eu******** ******@TK2MSFTN GP11.phx.gbl... "Eric Gibson" wrote in message news:JX******** ********@bignew s6.bellsouth.ne t... : michaaal wrote: : > I realize this is not solely an ASP question, but I thought you guys : > might know the answer and I couldn't find anywhere else to post this. : > If you have suggestions for this I am more than happy to post : > somewhere else. : > : > How can I, using ASP code, validate whether or not an email address : > is a real one? For example, if I have the email address called : > ro*@rogers.net how can I determine if it is real? : : I had the same question 6 months ago, and came to the conclusion here
are 3 levels : to this: : : 1) To do a regexp on the email to determine if it matches syntax for a valid email : address. : : Note: To really get the most fine-grained results you'd have to tokenize the : email address according to the RFC. You'd be surprised what's a valid email, and : what's not. : : 2) Check the MX records of the domain of the email to make sure it's a valid domain, : and is accepting email. : : 3) Actually connect to the MX in question, and ask the server if it's an address. : : There a few options. If you want to use VBScript there are a few
tutorials on the : internet... but they aren't nearly as well defined as the commercial offerings. I : bought http://www.hexillion.com/hg/HexValidEmail/, and it's great. It's simple... : and pretty cheap. For how much time I saved it was worth it. : : You could use PerlScript in the ASP environment, and Perl has many
modules that : effeciently do all three of these things, and they are free. So if you have : perlscript on your system and know how to install modules, go to : http://search.cpan.org and figure out which ones you'll need.
This still won't be a definite since there are catch-all email accounts
now. Try it with AOL, and you'll see all email addresses respond as valid.
-- Roland Hall /* This information is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. */ Technet Script Center - http://www.microsoft.com/technet/scriptcenter/ WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp MSDN Library - http://msdn.microsoft.com/library/default.asp
Keep it simple - some alphanums, an '@', and some more alphanums with at
least one dot. Don't be tempted to use a full RegEx - it's absolutely
massive.
Alan
"michaaal" <re******@veriz on.net> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. . I realize this is not solely an ASP question, but I thought you guys might know the answer and I couldn't find anywhere else to post this. If you
have suggestions for this I am more than happy to post somewhere else.
How can I, using ASP code, validate whether or not an email address is a real one? For example, if I have the email address called ro*@rogers.net how can I determine if it is real?
michaaal wrote: How can I, using ASP code, validate whether or not an email address is a real one? For example, if I have the email address called ro*@rogers.net how can I determine if it is real?
There is really only one surefire way to know -- send mail to it and ask for
a response.
You've seen this plenty of times -- you register on a site, but your
registration does not activate until you click a link on the auto-generated
mail that results.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
I personally favor the suggestion below, however you'll find this script
does a really good job - http://javascript.internet.com/forms...alidation.html
Dave Anderson wrote: michaaal wrote:
How can I, using ASP code, validate whether or not an email address is a real one? For example, if I have the email address called ro*@rogers.ne t how can I determine if it is real?
There is really only one surefire way to know -- send mail to it and ask for a response.
You've seen this plenty of times -- you register on a site, but your registration does not activate until you click a link on the auto-generated mail that results.
David,
I tried your website link and tried the sample form on the page.
I didn't seem to get any results - good or bad.
Am I doing something wrong?
Thanks!
"David C. Holley" <Da**********@n etscape.net> wrote in message
news:%2******** **********@TK2M SFTNGP11.phx.gb l... I personally favor the suggestion below, however you'll find this script does a really good job - http://javascript.internet.com/forms...alidation.html
Dave Anderson wrote:
michaaal wrote:
How can I, using ASP code, validate whether or not an email address is a real one? For example, if I have the email address called ro*@rogers.ne t how can I determine if it is real?
There is really only one surefire way to know -- send mail to it and ask
for a response.
You've seen this plenty of times -- you register on a site, but your registration does not activate until you click a link on the
auto-generated mail that results. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Techy |
last post by:
I have two fields in my form so called : invoice and cash
Now I want to validate this form on the client side with the help of
javascript in such a way that if one of these fields is empy an alert
box should pop up notifying the client.
Now if one is empty it should let the form to process
thanks
|
by: Martin |
last post by:
Hi,
I am implemeting a form in asp.net.
The form is quite large and the validation is reasonably complex, so I have
decieded to implement my own validation rather than use any custon
validators,
so I have a button on the form and the "causes validation" property is set
to true.
I have overridden the "Validate()" like so
|
by: Mike Logan |
last post by:
How do I validate messages? If my schema has a simpleType with facets like
"minExclusive" and "maxLength" will the .Net framework validate the message
before running the web service? This is what one of my server stubs look
like.
<System.Web.Services.WebMethodAttribute(), _
System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://me.com/xml/wsdl/AppSec/getApplicationList",
RequestElementName:="getApplicationListRequest",...
|
by: Joey |
last post by:
Does anyone know how to validate only one certain control in server
side code on postback? Instead of Page.Validate() and Page.IsValid, is
there some functionality equivalent to txtMyTextBox.IsValid...
I could also make it work if I could figure out how to use server side
code to compare a string value against a regular expression string,
with a boolean true/false result.
I need to do this to ensure that my database insert does not...
|
by: jjbutera |
last post by:
I know how to use the ErrorProvider in my winforms..or do I? I validate
the values and set the ErrorProvider in the validating event. If not
valid, I set e.Cancel = True. I clear the ErrorProvider in the
validated event.
Is there a way to know if all validated controls pass validation when
the user clicks an OK button? In ASP.Net there's the Page.IsValid
method. Is there something similar in winforms, or do I still have to
write an...
| |
by: TokyoJ |
last post by:
I run a small camp in Alaska for kids and my director is asking for a web form. Could someone please have a look and offer some advice on where I'm making mistake(s)?
I'm using the RegExp function to validate 3 types of fields: text, radio button, dropdown menu. but the code doesn't validate. After 2 days, it's time I asked for guidence.
Criteria:
Text: only alphabet, no numerals, allowed
Radio: one must be selected,
Dropdown: an option...
|
by: webrod |
last post by:
Hi,
I have some php pages with a lot of HTML code.
I am looking for a HTML validator tool (like TIDY).
TIDY is not good enough with PHP tags (it removes a lot of php code).
Do you have any idea?
Thanks you very much
|
by: SkipNRun |
last post by:
I am a novice when comes to JavaScript, AJAX. I am working on a form, which will allow users to update their contact information. In order to make the form flexible, I need to use pull down list.
Depends on the pull down list selection, I use script.aculo.us to validate the user input before submit and pass the necessary data, such as contact type, contact information and ranking to a php program for updating. This form should allow multiple...
|
by: Ganesh |
last post by:
Hi There,
I need to validate email address with regular expression control, i tried
something like this
^+*@*\.*$
but i need to validate even if it is blank, it should say invalid email, but
don't want to use another requirefield validator
|
by: Mike Hofer |
last post by:
Please forgive the cross-post to multiple forums. I did it
intentionally, but I *think* it was appropriate given the nature of my
question.
I'm working on an open source code library to help automate and clean
up parameter validation code. It's almost ready to go into open beta.
But one last little glitch is holding me up, and that would be the
name of the factory class that serves as the entry point into the
library: Validate.
|
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...
| |
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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();...
| |
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
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |