Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hi All,
I am making an asp.net application in which user input information at the time of signup and i after signup i send a mail to user the problem is that how i confirm that the user has a valid email.

Please help me.

Thanks in Advance.
Posted
Updated 31-May-11 21:27pm
v3

Hi,

Use asp:RegularExpressionValidator
with ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
 
Share this answer
 
Comments
ambarishtv 1-Jun-11 3:14am    
how do you know the given email is valid one
try this link email id validation[^] and apply proper emailid validation

MIDL
try

{
//Send(email);
}
catch (SmtpFailedRecipientsException ex) 
{


}
 
Share this answer
 
v3
You can use the regular expression validation control to do this in ASP.Net.
See here[^] for an example.

This[^] post discuses another approach.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900