24

To all the web developers out there that use email validation, stop using a check for common domain names! If I try to sign up with my email address (something@coded-websites.be) it won't work! So stop doing that and use a RegEx please! Who has had this problem too?

Comments
  • 3
    There's basically no point of that anymore. Any smarter spam will have an email that will pass such a test and if this is supposed to check if the domain exists, why not just grep for source, or fetch whois? I mean... it's better than limit yourself with regex where not necessary.
  • 1
    @KeyWeeUsr True, but that was just meant as an example. But the point is that some big websites still use that kind of mechanism to check for common domains..
  • 3
    Regexing for valid email addresses is..... Complicated.

    Even more so with new gtlds.

    Look it up if you don't believe me, it's terrifying.
  • 2
    @slowinversesqrt complicated and even more breakable without a proper test with each weird example it has to support, and so on.

    That's why I'm rather for fetching info from/about domain and forcing user to confirm the mail. Add a little bit of working captcha and idiots + bots should be filtered.
  • 2
    hmm why the fuck they do that
  • 2
    Currently at my job we let any text go with little validation. If we ever send an email we just have a batch job run to pick up any bounced emails and sends out a letter to their current physical address instead.
  • 1
    There are some tools to check if an email address exists or not such as http://email-checker.net/
  • 2
    Not all setups support this but you can check if email exists in real-time with a SMTP connection. You don't necessarily need to send and wait for a bounce. Some setups accept all incoming traffic though. My solution would be to send a email if server accepts the mail. As for email validation, you can have virtually anything (with a fee restrictions) before the @ symbol and it's case sensitive. Just check for @ and a '.' (local domains don't necessarily need these though)
  • 0
    You can also use www.zerobounce.net for email verification because they're more accurate. The system works by reducing and eliminating invalid, abuse, complaint, inactive, and spam-trap email address. You can use API, real-time validation.
  • 0
    For email verification, you can also use https://thechecker.co as this is the most cost-effective email verification and email list cleaning service in the market. It makes it easy and affordable for businesses to protect their email sending reputation and avoid inbox delivery issues that lead to a loss of sales opportunities.
Add Comment