Check if an email is valid with using SMTP, regexes and blacklists https://git.ksol.io/karolyi/py3-validate-email/
Find a file
2018-06-01 14:29:44 +02:00
.gitignore Changed from mx to check_mx 2012-04-07 23:13:13 +02:00
__init__.py Reorganised code 2018-06-01 14:29:44 +02:00
AUTHORS Reorganised code; mx check in separate file 2018-05-31 14:58:35 +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
mx_check.py Reorganised code 2018-06-01 14:29:44 +02:00
pyemailval.py Reorganised code 2018-06-01 14:29:44 +02:00
README.rst Reorganised code; mx check in separate file 2018-05-31 14:58:35 +02:00
regex_check.py Reorganised code 2018-06-01 14:29:44 +02:00
requirements.txt Added requirements.txt 2018-06-01 14:05:00 +02:00
setup.cfg Added requirements.txt 2018-06-01 14:05:00 +02:00
setup.py Reorganised code 2018-06-01 14:29:44 +02:00
test_mx_check.py Reorganised code 2018-06-01 14:29:44 +02:00
test_regex_check.py Reorganised code 2018-06-01 14:29:44 +02:00

==============
pyemailval
==============

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



INSTALLATION
============

You can install the package with pip:

    pip install pyemailval


USAGE
=====

Basic usage::

    from pyemailval 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/Ben-Baert/pyemailval/issues