Changes between Version 2 and Version 3 of Ticket #31960


Ignore:
Timestamp:
Aug 28, 2020, 11:09:25 AM (4 years ago)
Author:
James Pic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31960 – Description

    v2 v3  
    1 Currently, Django makes it seem that using an EmailField / EmailValidator will protect projects from getting invalid emails in their database, for example: emails starting with a dot like ".foo@bar.com" will be invalid as expected.
     1Currently, Django makes it seem that using an EmailField / EmailValidator will protect projects from getting invalid emails in their database.
    22
    33But in reality, users must not count on Django for that:
     
    1313
    1414It would be only fair to users to document that the EmailValidator will let invalid emails through, which will be the cause of SMTPError, and that people who don't want invalid emails in their EmailField must override and fix Django's default behaviour.
     15
     16As to why EmailValidator would reject emails starting with a dot like ".foo@bar.com" but not emails starting with a hyphen "-foo@bar.com": this will remain a mystery.
Back to Top