class EmailValidator(message=None, code=None, whitelist=None) [source]
Parameters:
message – If not None, overrides message.
code – If not None, overrides code.
whitelist – If not None, overrides whitelist.
message
The error message used by ValidationError if validation fails. Defaults to "Enter a valid email address".
code
The error code used by ValidationError if validation fails. Defaults to "invalid".
whitelist
Whitelist of email domains to allow. By default, a regu