toolware/utils/generic.py
def is_valid_email(email):
    """
    Validates and email address.
    Note: valid emails must follow the <name>@<domain><.extension> patterns.
    """
    try:
        validate_email(email)
    except ValidationError:
        return False
    if simple_email_re.match(email):
        return True
    return False
def is_valid_email(email):
    """
    Validates and email address.
    Note: valid emails must follow the <name>@<domain><.extension> patterns.
    """
    try:
        validate_email(email)
    except ValidationError:
        return False
    if simple_email_re.match(email):
        return True
    return False
def is_valid_email ( email ) : try : validate_email ( email ) except ValidationError : return False if simple_email_re . match ( email ) : return True return False
Validates and email address.
    Note: valid emails must follow the <name>@<domain><.extension> patterns.
Validates and email address . Note : valid emails must follow the <name >