Skip to content

Wysie/validate-email-address

 
 

Repository files navigation

build

validate-email-address

validate-email-address 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-address

Extra

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

pip install pyDNS

USAGE

Basic usage:

>>> from validate_email_address import validate_email
>>> validate_email('[email protected]')
True

Checking domain has SMTP Server

Check if the host has SMTP Server:

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

Verify email exists

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

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

About

Verify if an email address is valid and really exists

Resources

License

Stars

Watchers

Forks

Packages

No packages published