3 ms·
I hear and understand a lot of the comments on this thread mention that regex saves the user from a typo and such. So I want to vouch for a github project calle
by ljd 13y ago
I hear and understand a lot of the comments on this thread mention that regex saves the user from a typo and such.
So I want to vouch for a github project called mailcheck[0] by the Kicksend team that's great.
At Ventata, we used to have the same issues you've all described with people forgetting things like ".com" and "gmial" vs "gmail". Once we started using mailcheck our bounce rate went way down. Now we only get bounces when people deliberately give us faulty addresses, but we aren't really concerned with trying to convert them. They are checking us out and want to stay anonymous, I don't mind that.
That condition aside, Mailcheck is pretty much all you'll ever need.
[0] https://github.com/kicksend/mailcheck https://github.com/kicksend/mailcheck
- rallison 13y agoMailcheck looks pretty interesting - I'd been considering adding some sort of client side validation for email addresses for my personal projects, and this looks pretty solid. There are a few cases that it doesn't catch that I wish it would, but it appears it would catch a fair percentage of simple mistakes. For example, it catches foo@gmail, but it doesn't catch foo@outlook. Of course, gmail is going to be the more common case. Still, it looks good overall and an improvement over no client side validation. Edit: Actually, I see you can define a set of domains to check against. Very nice.
- baudehlo 13y agoThe only thing mailcheck doesn't do is check if the domain has MX records, so valid looking domains that you'll never be able to send anything to will pass. I've tried to help this situation by creating an API for you guys: https://www.emailitin.com/email_validator https://www.emailitin.com/email_validator
- adamzochowski 13y agoDomains without MX record can be valid, as mail servers, upon lack of MX record, will query for A record.
- claudius 13y agoOr AAAA records.