how to check email exist or not

Posted by Naidulaxmi under ASP.NET on 5/17/2012 | Points: 10 | Views : 13635 | Status : [Member] | Replies : 8
Hi Friends,

I am working on a website project in that project i have how to check email exist or not asp.net.

How will do this most urgent.


Thanks & Regards,

appalanaidu


Responses

Posted by: rajarsn-7627 on: 5/17/2012 [Member] Starter | Points: 25

Up
0
Down
I don't think you can use the email existing validation directly in ASP.Net. You need to check with that particular mail server, means you need to use a third party tool.

Codeproject and ASP.Net forums has very good examples of it. Please have a look at these sites.

CodeProject: http://www.codeproject.com/Questions/205171/How-to-check-email-exists-or-not-specially-yahoo-i
ASP.net forums: http://forums.asp.net/t/857998.aspx/1

Hope this helps.

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 5/17/2012 [Member] Starter | Points: 25

Up
0
Down
hi

thanks your response but not use.

Thanks & Regards,

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dotnetrajanikanth on: 5/17/2012 [Member] Starter | Points: 25

Up
0
Down
check for membership.duplicateemail

This event will be fired if the email is already existing

____________
www.flickr.com/photos/psdesigner/

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Meet1424 on: 5/18/2012 [Member] Starter | Points: 25

Up
0
Down
hi i just want to know that whether u r going to check existence of email in ur database or worldwide?? I have solution for worldwide If u want the same..

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 5/21/2012 [Member] Starter | Points: 25

Up
0
Down
hi

I have to check existence of email for worldwide.


Thanks& Regards.


appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Meet1424 on: 5/22/2012 [Member] Starter | Points: 25

Up
0
Down

I used this function to check existence of an email and domain name as well for user registration if domain name and email user exist then registration is done otherwise not..
-----------------------------------------------
using System.Net;
using System.Net.Mail;
bool sendMail(string personName,string toMail)
{
bool value = true, host = true ;
try
{
string messagetosend = "Person Name: " + personName + "<br/> Account activation <br/> ";

System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(sender, toMail, subject, messagetosend);

System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient(servername, 25);
System.Net.NetworkCredential userinfo = new System.Net.NetworkCredential(senderid, password);


client.UseDefaultCredentials = false;
client.Credentials = userinfo;
message.IsBodyHtml = true;
IPHostEntry dnsInfo = System.Net.Dns.Resolve(domainname); //for ex abc.com etc

if (host == true)
{
client.Send(message);

value = true;
}
else
{
lblMessage.Text = "Registration failed because no such domain exists";
}
}
catch (Exception ex)
{

if (ex is SmtpFailedRecipientException)
{//this will check for email id

// lblMessage.Text = ex.InnerException.ToString();
value = false;
}

}
return value;
}
}




Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 5/24/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
@Meet1424

Always Add your code in Code Tag, dont bold it it is not readable


Thank you for posting at Dotnetfunda
[Administrator]

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Asavasamuel on: 3/18/2013 [Member] Starter | Points: 25

Up
0
Down
Naidulaxmi

I found this library for verifying email addresses in .net:
http://www.kellermansoftware.com/p-37-net-email-validation.aspx


Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response