473,396 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Validating if the inputted email address is real,ASP.net

Hi,
Anyone who knows how to validate if the email inputted by the new user is a real one.
Aug 22 '12 #1
10 1714
Rabbit
12,516 Expert Mod 8TB
Real or just looks real? The former is usually done by sending them an e-mail with a link that they click to validate. The latter is usually done by looking for the component parts that make up an e-mail.
Aug 22 '12 #2
Frinavale
9,735 Expert Mod 8TB
The later can be achieved using a Regular Expressions Validator.

-Frinny
Aug 22 '12 #3
PsychoCoder
465 Expert Mod 256MB
And to help even more here's a good regular expression pattern to use:

Expand|Select|Wrap|Line Numbers
  1. ^[a-z0-9_\\+-]+(\\.[a-z0-9_\\+-]+)*@[a-z0-9-]+(\\.[a-z0-9]+)*\\.([a-z]{2,4})$
Aug 22 '12 #4
Frinavale
9,735 Expert Mod 8TB
I think the validator has a bunch of predefined regular expressions for email addresses and phone numbers and other things.

-Frinny
Aug 23 '12 #5
Guys thank you, Regular Expressions Validator is just for the email format, what I need is to validate if the email really exist because later on I need to send them emails.
Aug 28 '12 #6
PsychoCoder
465 Expert Mod 256MB
Well that's a whole different situation (one you should have made when asking the question). What you do is you send a confirmation email to the address they provide with a link to confirm said address.

At least that's the road I'd go down.

Happy Coding!
Aug 28 '12 #7
Sorry I'm new with this, how can I do that?
Aug 28 '12 #8
Frinavale
9,735 Expert Mod 8TB
There have been a couple of solutions suggested.
Which solution are you asking about?

-Frinny
Aug 29 '12 #9
How can I send a confirmation email to the address they provide with a link to confirm said address.
Aug 30 '12 #10
Rabbit
12,516 Expert Mod 8TB
When they register, generate a random, unique key. E-mail the user with a link to a page that passes that key in the link. Create a confirmation page that takes that key and checks which e-mail it is tied to.
Aug 30 '12 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: aaron | last post by:
I need some help with validating an email address. Right now, I am doing this: function sys_is_valid_email ($s) { if (preg_match ("/^.+@.+\..+$/", $s)) { return 1; } else { return 0; } }
17
by: Sue | last post by:
<html> Is there someone here that can help me validate the period as the fourth from the last character in an email address. There is other information and validation on the form I have to do but...
117
by: Steevo | last post by:
Any suggestions as to the best programs for cloaking email addresses? Many thanks -- Steevo
1
by: Henrik Nyberg | last post by:
Here's a small method for validating email in C#. It may save you some time.. public static bool IsValidEmailAddress(string sEmail) { if (sEmail == null) { return false; } int nFirstAT =...
6
by: yochessyo | last post by:
Hi, I would like to validate email addresses. I am not interested to validate it with a regex expression but from the email server where the addresses are. I would like to query this server and...
35
by: Mika M | last post by:
Simple question: Does Framework (1.1) contain any routine to check entered email-address is valid ? It's quite easy to make own code for that purpose, but why to do if Framework (1.1) contain...
3
by: Tom Anderson | last post by:
Hi all, A hoary old chestnut this - any advice on how to syntactically validate an email address? I'd like to support both the display-name-and-angle-bracket and bare-address forms, and to allow...
9
by: chadlupkes | last post by:
I have this code from someone else, and I'm trying to make heads or tails of it because IE doesn't like it. Can anyone help? Or does anyone have a better idea? /* parse the email to check for...
1
by: Grey | last post by:
I have to write a program to verify email address availability. i have to verify thousand of email address. is there any way to verify the email in ..net instead. the requirement is to verify which...
3
by: rag84dec | last post by:
Hi can anyone help me in writing this here is the code i wrote which is not woring properly print "Enter the E-Mail address\n"; $_=<>;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...

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.