3

I have this registration page which works fine ,but for the email field I need to make sure that the email is correct and valid 1 : Correct 2 : Valid

for the correct email add i am using java script validation for maintaining abc@def.com

well that is working fine

but my question is , Is there any web service or java API to make sure whether the mail ID actually is existing and registered Like my mail id is : hussainABCD@gmail.com this is actually a existing ID

but i may try hussain5555@gmail.com,hussain1111@gmail.com,hussain8888@gmail.com,

these will pass the java script validation but are not existing in reality

do we have any way to make sure that the mail id exists ??

2 Answers2

8

The only way to check if an email address actually exists is to send an email to it and let the user respond on that.

For example:

  • a confirmation code that needs to be filled in your website
  • a link, going to your website, that needs to be visited

And still it is uncertain whether the email is existing afterwards, as it is easy to simply create a temporary email to pass the validation and delete it afterwards.

Instead of validating email addresses you can use the Google API to let your users sign in using their account. It is also possible to use OpenID on a similar way.

Veger
  • 37,240
  • 11
  • 105
  • 116
0

This probably isn't possible using existing services and/or API's, since it could be quite a security risk. Use an email with a validation link if you want to be sure the address exists. Or OpenID, as mentioned by BalusC.

Luuuud
  • 4,206
  • 2
  • 25
  • 34