Mailchecker

6.0.20 · active · verified Mon Apr 13

Mailchecker is a cross-language library designed for detecting temporary (disposable/throwaway) email addresses. It prevents users from signing up with such addresses by validating emails against a vast, continuously updated database of known fake email providers. The Python version is actively maintained with frequent updates to its domain list, with version 6.0.20 being the latest stable release.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import the `MailChecker` module and use its `is_valid()` method to check various email addresses. It returns `True` if the email is syntactically valid and not on the disposable email domain blacklist, otherwise `False`.

import MailChecker

# Check a valid, non-disposable email
is_valid_real = MailChecker.is_valid('test@example.com')
print(f"'test@example.com' is valid: {is_valid_real}")

# Check a disposable email (yopmail.com is a common one)
is_valid_temp = MailChecker.is_valid('temp@yopmail.com')
print(f"'temp@yopmail.com' is valid: {is_valid_temp}")

# Check an invalid format email
is_valid_format = MailChecker.is_valid('invalid-email')
print(f"'invalid-email' is valid: {is_valid_format}")

view raw JSON →