Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please note I don't want to validate email. Instead I wanna check whether an email address does exists in real or not. There are certain api available but I don't want to use them. Please show the sample code that would be really helpful.
Posted

1 solution

You can't, in practice: all you can do is send an email and see if you get a response from a "live" user. If you do, it works.

If you don't...he could be not looking yet, it could be a "unmonitored" email address, it could be an autodelete email (I have a couple of those to use when shops insist: all mail is automatically deleted when it arrives), it could be a valid email domain with no user registered to the local part.

It depends on the email system on the other end, and how it is configured.
Why? Simple: to prevent spam. If you can detect "valid emails" without a response, spammers can flood it with rubbish...
 
Share this answer
 
Comments
Member 11435202 8-Feb-15 3:41am    
Agree to you but then there are certain websites available on net which verifies the email. And they work perfectly without sending any mail to that mail address. How do they work?
Ravi Bhavnani 8-Feb-15 11:22am    
Sorry, but I find that hard to believe. How would a website be able to check if an email address is indeed valid?

/ravi

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