Check if an email is valid with using SMTP, regexes and blacklists https://git.ksol.io/karolyi/py3-validate-email/
Find a file
2018-05-31 12:56:03 +02:00
.gitignore Changed from mx to check_mx 2012-04-07 23:13:13 +02:00
AUTHORS First version 2012-04-07 23:05:57 +02:00
email_regex.py Added test cases for regex 2018-05-31 12:54:21 +02:00
INSTALL.txt First version 2012-04-07 23:05:57 +02:00
LICENSE Updated license to be LGPL. Fixed #22 2014-07-03 11:34:25 +02:00
MANIFEST.in First version 2012-04-07 23:05:57 +02:00
README.rst Spelling correction 2012-11-16 12:41:11 +00:00
setup.cfg Added test cases for regex 2018-05-31 12:54:21 +02:00
setup.py Update setup.py 2015-03-23 13:05:19 +08:00
tests.py Test file cleanup 2018-05-31 12:56:03 +02:00
vagrant_setup.md Update vagrant_setup.md 2015-07-17 12:04:24 -04:00
validate_email.py Added test cases for regex 2018-05-31 12:54:21 +02:00

==============
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


USAGE
=====

Basic usage::

    from validate_email import validate_email
    is_valid = validate_email('example@example.com')


Checking domain has SMTP Server
-------------------------------

Check if the host has SMTP Server::

    from validate_email import validate_email
    is_valid = validate_email('example@example.com',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('example@example.com',verify=True)


TODOs and BUGS
==============
See: http://github.com/syrusakbary/validate_email/issues