Skip to content

Instantly share code, notes, and snippets.

@suhailvs
Forked from imrekel/email_validator.py
Created October 29, 2013 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suhailvs/7210286 to your computer and use it in GitHub Desktop.
Save suhailvs/7210286 to your computer and use it in GitHub Desktop.
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