News for hackers. Stuff that matters.
Re:Email Regex that works 99.99% by chrisfarms on Sunday February 22, 2015 @08:47AM (#9089377)
Yeah this is not great practice.

We built an app where sending a validation email upfront was not a practical option some time ago, and the best strategy I found for ensuring the email was valid was to lookup the MX records and ask the mailserver for the given domain, by issuing RCPT commands. Many mailservers will just drop connections when RCPT is for someone who doesn't exist or can't be routed to which was a good indicator of a typo or invalid address. And of course if the MX lookup fails the domain is incorrect.

Still wouldn't recommend this method either though really.

Re:Email Regex that works 99.99% by IgorPartola on Sunday February 22, 2015 @09:14AM (#9089473)
Did you remember to fall back on a A and AAAA lookup if there is no MX record? That is what you are supposed to do.