EmailValidator icon indicating copy to clipboard operation
EmailValidator copied to clipboard

[email protected] marked as invalid, but should be valid according to RFC 2822

Open FranzBruckner opened this issue 2 years ago • 2 comments

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.

FranzBruckner avatar Mar 02 '22 10:03 FranzBruckner

Hi, can you refer to the part of the RFC that make this valid?

egulias avatar Apr 02 '22 17:04 egulias

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. :)

smirgol avatar May 05 '22 15:05 smirgol