Skip to content

Instantly share code, notes, and snippets.

@Mahmud-Alam
Forked from imrekel/email_validator.py
Created November 22, 2021 12:40
Show Gist options
  • Save Mahmud-Alam/83d8c9367acbd022f80c8d941e2e9721 to your computer and use it in GitHub Desktop.
Save Mahmud-Alam/83d8c9367acbd022f80c8d941e2e9721 to your computer and use it in GitHub Desktop.
Email validator module using Django
from django.forms import EmailField
from django.core.exceptions import ValidationError
def isEmailAddressValid( email ):
try:
EmailField().clean(email)
return True
except ValidationError:
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment