EmailValidator
EmailValidator copied to clipboard
[email protected] marked as invalid, but should be valid according to RFC 2822
A dot before @ ([email protected]) will be marked as invalid.
~~Browsers (Chrome) and Symfony Validators mark them as valid too.~~
- The Symfony-Validator can be configured to use "HTML5" or "Strict" Validation. Strict uses this validator
- Browsers use "HTML5" Validation
Nevertheless... As far as I can tell, according to RFC 2822 it should be valid.
Hi, can you refer to the part of the RFC that make this valid?
I also got irritated by this, since I know someone who has an email address where the local part ends with "." and I never had issues sending/receiving mails to/from him. But, looks like it's indeed not valid according to RFC3696 At the end of that page it reads:
period (".") may also appear, but may not be used to start or end the local part
But, I'm not expert in this matter at all. There might be another RFC that is overruling this one, I have no idea. :)