Skip to main content

Email validator with regex and SMTP checking.

Project description

https://travis-ci.org/karolyi/py3-validate-email.svg?branch=master

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

See: https://github.com/karolyi/py3-validate-email/issues

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py3-validate-email-0.1.9.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file py3-validate-email-0.1.9.tar.gz.

File metadata

  • Download URL: py3-validate-email-0.1.9.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for py3-validate-email-0.1.9.tar.gz
Algorithm Hash digest
SHA256 559ab0aaa9aae35a172f2b6e55bdbe9881ee6ad93adedb55ca5a25ce72f4c36a
MD5 0d67d8376d4cb092a64794148d6b4df8
BLAKE2b-256 86863232aeb25f2f2a79d9970f67471d806535a8e82b0170e714c31d53abe7b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page