Skip to content

Comment on Stop Validating Email Addresses With Your Complex Regexes

Comments

What about just checking if a MX record exists?

That verifies the domain, but not the actual mailbox.

One possibility would be to lookup the MX, then connect to the remote MTA and ask it directly if the mailbox is valid. But that seems a bit like over-engineering.

It's also possible that the email server is down at the moment, but will come back up later.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.