Skip to content

Latest commit

 

History

History
56 lines (32 loc) · 1.05 KB

README.rst

File metadata and controls

56 lines (32 loc) · 1.05 KB

Validate_email

Validate_email is a package for Python that check if an email is valid, properly formatted and really exists.

INSTALLATION

First, you must do:

pip install validate_email

Extra

For check the domain mx and verify email exits you must have the pyDNS package installed:

pip install pyDNS

#For python3 run this:
pip3 install py3dns

USAGE

Basic usage:

from validate_email import validate_email
is_valid = validate_email('[email protected]')

Checking domain has SMTP Server

Check if the host has SMTP Server:

from validate_email import validate_email
is_valid = validate_email('[email protected]',check_mx=True)

Verify email exists

Check if the host has SMTP Server and the email really exists:

from validate_email import validate_email
is_valid = validate_email('[email protected]',verify=True)

TODOs and BUGS

See: http://github.com/syrusakbary/validate_email/issues