2 ms·
('SMPT' is used throughtout instead of 'SMTP'.) What does django.core.validators.EmailValidator actually do? Validating an email address with a regex is surpr
by bambax 14y ago
('SMPT' is used throughtout instead of 'SMTP'.)
What does django.core.validators.EmailValidator actually do?
Validating an email address with a regex is surprisingly hard: see http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html
I wonder if EmailValidator does this, or something simpler?
- baudehlo 14y agoThat validates RFC822 addresses, which is the full syntax of the From/To/CC headers. You don't want that for validating an email address on a web form.