Addressing possible typos in emails (@gamail, @hotnail ..) [duplicate]

2

Well, I have some problematic registrations on account that the user typed eg "josé@gamail.com".

From what I've seen in this answer , most servers disabled a possible ping with response if email exists because of spammers.

What would be the solution you would use in this case?

I thought about creating a plugin where these errors are handled, for example:

let emailError = false;
let emailValid = false;
let emailInserido = this.emailInserido;


if ( emailInserido === "gamail" || emailInserido === "gmil" ... ) {
  emailError = true;
} else {
emailValid = true; }
    
asked by anonymous 13.08.2015 / 19:13

1 answer

4

There is no way to confirm that an email exists directly. That's because, as you said, spam would run loose.

What should be done is to generate an activation code embedded in a link that is sent to the email, and that the user must follow (the link) to complete the registration. You have done this on many sites as a user.

Regarding checking the domain (what comes after @), there may be services that allow this verification (you can not mount this yourself for ALL existing domains). I do not know if it would make up for the work, the email with confirmation link resolves.

Finally, consider using delegated authentication (access your system through an account on google, facebook, etc.). It's easy if the platform you're developing has APIs (I think so), and it prevents the user from having to be reminded of many passwords.

    
13.08.2015 / 19:21