Skip to main content

Check the existence of a mailbox via SMTP.

Project description

check_email_status

This package exists to help poll smtp servers to see if a mailbox address is valid. It doesn’t return true or false, but a set of status codes, extended status codes, and full messages from the responding server.

Usage

Here is an example using pyDNS as the MX resolver:

from check_email_status import check_email_status
from check_email_status.resolvers import PyDNSMXResolver

status = check_email_status(PyDNSMXResolver, 'recipient@domain.com', 'sender@domain.com')

# This is the SMTP status code returned by the server. (e.g.) 550
print status['status']

# This is the extended status code, for instance 5.1.1 would mean the account doesn't exist.
# If an extended code is not sent, this is not set.
print status['extended_status']

# This is the message returned from the mail server describing the results of the query.
print status['messsage']

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

check_email_status-1.1.3.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file check_email_status-1.1.3.tar.gz.

File metadata

File hashes

Hashes for check_email_status-1.1.3.tar.gz
Algorithm Hash digest
SHA256 872fbbadcd5eca81b479488f371deb420f54cb998ca7913f7c74461df1141993
MD5 5db2c51b475a3ac9be6dad024e0e01e7
BLAKE2b-256 e39af02a91d2c465c502adab3750d4fd214ab709c9f3abff61be0e6432d58f21

See more details on using hashes here.

Supported by

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