Validation.email: is john72@forum.dk:frame13531 valid email ? #42739
Replies: 1 comment 2 replies
-
The old adage "There are only two hard things in Computer Science: cache invalidation and naming things." should really be revisited, because it's obvious that there are three hard things in Computer Science: cache invalidation, naming things and e-mail format validation. There have been so many attempts over the years to write a concise set of rules and regulations for what is and isn't a valid e-mail, but the only real authorities are things like RFC 822 (section 6.1) and so on. My own implementation of a "valid" email address resolver looks like this:
And in this case, while your address passes the first four rules, it fails the fifth and final:
|
Beta Was this translation helpful? Give feedback.
-
Just got this on one of my websites.
Email not able to be sent
Laravel doesn't think it is
Should this be a valid email
john72@forum.dk:frame13531
? If so, should we raise this as a bug ?PS: john72@forum.dk:frame13531 is not the real email used just for privacy
21 votes ·
Beta Was this translation helpful? Give feedback.
All reactions