3 ms·
One nice looking trick I've seen is checking the domain of the email address for an MX record. (e.g. http://php.dzone.com/news/php-email-validator-email-mx-d ht
by deutronium 16y ago
One nice looking trick I've seen is checking the domain of the email address for an MX record. (e.g. http://php.dzone.com/news/php-email-validator-email-mx-d http://php.dzone.com/news/php-email-validator-email-mx-d)
Possibly this approach is too slow to use by itself without a regex. Also maybe there are other problems with this method I'm not aware of?
- drivebyacct 16y agoI suggested that a while back but was told that due to spam, you can get lots of false negatives from this technique and others. The best way to validate an email remains to be a test email apparently.
- pkulak 16y agoYeah, that's a really quick way to get IP banned from most email hosts.
- spicyj 16y agoYou must be thinking of something like this: http://www.webdigi.co.uk/blog/2009/how-to-check-if-an-email-address-exists-without-sending-an-email/ http://www.webdigi.co.uk/blog/2009/how-to-check-if-an-email-... Merely looking up MX records is something you do for a _domain_ and it's no different than the DNS requests your computer makes when you go to a website.
- pornel 16y agoMX record is not required. You should allow hosts with only A records too. http://tools.ietf.org/html/rfc5321#section-5.1 http://tools.ietf.org/html/rfc5321#section-5.1
- curio 16y agopractically speaking, most respectable email services will have an MX record. i tested it on about 30,000 emails & a simple MX lookup caught about 40 gmial's and only 1 false positive.
- deleted 16y ago[deleted]