Faisal
Faisal

Reputation: 179

How to check whether user email id is existing or not using asp.net?

I have a form in my asp.net site. when user fills email id text box, I want to make sure whether that email id is valid or invalid(existing or not existing).

Ex: [email protected] is valid, [email protected] is not valid.

How to find it whether it is valid or not. please help me. I searched some stack overflow. even though I didn't get.

Upvotes: 1

Views: 1681

Answers (5)

Trushant
Trushant

Reputation: 1

Send one link on that email address with some query string parameters and based on those parameters activate their user profile otherwise not activate..

So based on this methodology, you can verify email address is valid or not.

Upvotes: 0

François Boivin
François Boivin

Reputation: 19

You could use the built-in Microsoft SmtpClient Class if you know the adress of your SMTP server. The Send Method returns an exception when the delivery fails. Again, this is only a suggestion and perhaps too overwhelming for what you need, but this class is rather useful in C#.

Upvotes: 0

user6853184
user6853184

Reputation:

try to create an email id in mail server. if exist it will return an existing mail return message.

Upvotes: 0

Markus
Markus

Reputation: 438

https://emailhunter.co/api/docs#email-verification - is a web service API to check email addresses

Upvotes: 0

user1666620
user1666620

Reputation: 4808

There is no way to for you to know if an email account actually exists other than to send an email and see what happens. A delivery failure notice might be sent, but that is not guaranteed to be sent, and even if it is, it might not be sent for days depending on how many delivery attempts are made.

You can send a verification email which contains a URL of a web service you control and passes a unique ID. The email owner clicks on the URL and is directed at your web service. You look at the unique ID and now you know the email address exists.

Upvotes: 1

Related Questions