Email validator with regex and SMTP checking.
Project description
py3-validate-email
py3-validate-email is a package for Python that check if an email is valid, properly formatted and really exists.
This module is for Python 3.6 and above!
INSTALLATION
You can install the package with pip:
pip install py3-validate-email
USAGE
Basic usage:
from validate_email import validate_email is_valid = validate_email(email_address='example@example.com', check_regex=True, check_mx=True, from_address='my@from.addr.ess', helo_host='my.host.name', smtp_timeout=10, use_blacklist=True)
check_regex
will check will the email address has a valid structure and defaults to True
check_mx
: check the mx-records and check whether the email actually exists
from_address
: the email address the probe will be sent from,
helo_host
: the host to use in SMTP HELO when checking for an email,
smtp_timeout
: seconds until SMTP timeout
use_blacklist
: use the blacklist of domains downloaded from https://github.com/martenson/disposable-email-domains
TODOs and BUGS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for py3_validate_email-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40c5e942b88d2c8a4101dbcc3688cc51a6e478339ad2a464266375e106898ac5 |
|
MD5 | ebe962472638781aefb72397e206ab32 |
|
BLAKE2b-256 | 15a373e1cec2ce00691919e7f3b192655cda34db6da59532a7b6ba4142c05116 |