Fixing
This commit is contained in:
parent
443f264fd7
commit
3343039995
|
@ -6,7 +6,8 @@ def validate_email(
|
|||
email_address: str, check_regex: bool = True, check_mx: bool = True,
|
||||
smtp_timeout: int = 10, use_blacklist: bool = True) -> bool:
|
||||
|
||||
if check_regex and not regex_check(email_address):
|
||||
if check_regex and not regex_check(
|
||||
value=email_address, use_blacklist=use_blacklist):
|
||||
return False
|
||||
|
||||
if check_mx and not mx_check(email_address, smtp_timeout=smtp_timeout):
|
||||
|
|
Loading…
Reference in New Issue