Checking an email adress whether its valid or not cannot be done without sending an email to that address. So to check whether an email address exists, you actually have to send an email and check. Though, you can check the email string whether its valid
or not at the client side by some javascript and regular expression:
function isEmail(string) {
return (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1);
}
To check Valid Email expression a Regular expresion Validator can be used.
For Verification of an email, I thought the same as u discribe. As, this is what every web page registration processs do.
My question was a kind of more practical nature. That, if some one knows a good application, made for this activity, using ASP .NET 2.0. Where as, I am using the built-in Profiling and users authorization System/Database.
My Idea was to generate a rendom number and save in the database. Then after, for user email authorization use the same number.
omerkamal
Contributor
2507 Points
513 Posts
Users E-Mail Authetication- How?
Feb 26, 2007 07:06 PM|LINK
Hi,
I am facing problems with those people who enter wronge or fake emails in the registration process.
Is there some working example for teclking this issue?
I am using ASP .NET 2.0 Authentication and Profiling.
bullpit
All-Star
21838 Points
4822 Posts
Re: Users E-Mail Authetication- How?
Feb 26, 2007 08:50 PM|LINK
Hi,
Checking an email adress whether its valid or not cannot be done without sending an email to that address. So to check whether an email address exists, you actually have to send an email and check. Though, you can check the email string whether its valid or not at the client side by some javascript and regular expression:
function isEmail(string) {
return (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1);
}
Good luck
bullpit
Max
Let Me Google That For You!
omerkamal
Contributor
2507 Points
513 Posts
Re: Users E-Mail Authetication- How?
Feb 27, 2007 03:57 PM|LINK
To check Valid Email expression a Regular expresion Validator can be used.
For Verification of an email, I thought the same as u discribe. As, this is what every web page registration processs do.
My question was a kind of more practical nature. That, if some one knows a good application, made for this activity, using ASP .NET 2.0. Where as, I am using the built-in Profiling and users authorization System/Database.
My Idea was to generate a rendom number and save in the database. Then after, for user email authorization use the same number.
Does some one know a good practical approach?
bullpit
All-Star
21838 Points
4822 Posts
Re: Users E-Mail Authetication- How?
Feb 27, 2007 04:28 PM|LINK
did u try this:
http://www.codeproject.com/aspnet/Valid_Email_Addresses.asp
Max
Let Me Google That For You!
omerkamal
Contributor
2507 Points
513 Posts
Re: Users E-Mail Authetication- How?
Feb 28, 2007 06:13 AM|LINK
Yes that is a good Article.
I was thinking about MX records checking method. Does some one have an idea about that?
kummi
Member
2 Points
1 Post
Re: Users E-Mail Authetication- How?
Feb 06, 2010 06:12 PM|LINK
hi,
can you also share the solution for how to verify of the mailaddress exists or not without sending mail... Thnks