0

I've realized the above emailValidator function. But it's only a syntatic validation. How can I create an email address validator that checks if really that email exist?

image of the code

Alessandro
  • 99
  • 2
  • 9

1 Answers1

1

You cannot determine if an email-address exists, only by having a look on it. You can only check if the format is correct.

If you want to be sure, you would have to sort of ask the email-provider if the desired account exists.

You can send an email and if there is a mailserver listening AND you get no error, there should be a high probability the email exists.

What are you really trying to do?