And finally, there’s no small number of developers who ascribe to the dictum: “The only way to validate an email address is to deliver a message to it”.Feel free to disagree, but I think Mailgun provides a better way. The full range of special characters is now allowed; quotes aren’t automatically rejected, and there is no TLD character limit. Of the problems I’m aware of in Cold Fusion 9/10, only 2 weren’t resolved: So, all in all, it’s not terrible, though not bug free.
The TL; DR of this post, which should be readily apparent from the title, is that Mailgun provides an excellent service for email validation.
Most of us don’t want or need to know the details of the RFCs; we want an easy way to validate email addresses, so we can get on with building our apps.
I sound like a broken record here, but you should probably be using Mailgun, : As nearly every article on email validation will tell you (or someone in the comments will point out), regex only gets you so far.
Sure, Cold Fusion 11 doesn’t automatically fail long TLDs, but that’s just because it accepts anything after the @.
Speaking from experience, it’s easy to underestimate the complexity of what constitutes a valid email address.