Handling possible typos in emails (@gamail, @hotnail .)

Asked

Viewed 560 times

2

Well, I have some problematic registrations because the user typed in: "josé@gamail.com".

From what I saw in this answer, most servers have disabled a possible ping with reply if the email exists, because of spammers.

What solution would you use in this case ?

I thought of 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; }
  • You propose a different approach to the question marked as duplicate, but your approach is not feasible. So I think the questions fall in the same answer.

1 answer

4

There is no way to confirm if 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’ve done this on multiple sites, as a user.

In relation to verifying the domain (what comes after @), there may be services that allow this verification (it is not possible for you to build this yourself for ALL existing domains). I do not know if it would compensate the work, the email with link for confirmation resolves.

Finally, think about using delegated authentication (accessing your system through a google account, facebook, etc.). It’s easy if the platform you’re developing has an API (I think so), and prevents the user from having to remember too many passwords.

  • Actually, doing it for all domains would be a lot of work.. But thinking about it now, I think that a self-completed for the main ones would decrease the errors.. at the base I’m working on is almost 70% of users are @gmail, @ Hotmail, @globe, @oul.. and I will do as you said, leave the email as pending until confirmation.. at least the user will have the feedback that there is something wrong..

  • Making an auto complete is a great idea. Liked. Can use as a base all domains that exist (and were confirmed by the link!) in your system. Interesting!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.