Skip to main content

Comprehensive email verification tool using regex, MX and SMTP checks

Project description

# EmailVerifier 📧✅

**EmailVerifier** is a comprehensive Python utility to validate email addresses using:

- Regular expression format validation  
- Domain and MX record checks  
- SMTP verification for business domains  
- Detection of disposable email domains  

Ideal for applications where email accuracy is critical (e.g., signups, CRMs, fraud prevention).

---

## 🔧 Features

- ✅ Format validation via regex  
- 🌐 Domain existence and MX record checks  
- 📬 SMTP verification (for business domains)  
- 🛡️ Disposable email detection (e.g., mailinator, 10minutemail)  
- ⚙️ Configurable timeout and retry settings  

---

## 📦 Installation

```bash
pip install smtp-email-validator

🚀 Usage

from emailverifier import EmailVerifier

verifier = EmailVerifier(timeout=8, max_retries=1)

email = "example@businessdomain.com"
is_valid, message = verifier.verify_email(email)

print(f"Valid: {is_valid}, Reason: {message}")

🔍 Sample Output

Valid: True, Reason: Verified business email

or

Valid: False, Reason: Disposable email detected

⚙️ Configuration

verifier = EmailVerifier(timeout=10, max_retries=3)
  • timeout: Network operation timeout in seconds
  • max_retries: Number of retry attempts for DNS and SMTP checks

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


✨ Contributing

Pull requests and suggestions are welcome! Open an issue or submit a PR via GitHub.


📫 Contact

Author: Nworah Chimzuruoke Gabriel
Email: nworahgabriel6@gmail.com
GitHub: https://github.com/Nworah-Gabriel/emailverifier


🛠 Dependencies

  • dnspython – DNS resolver used for MX lookups
  • Python 3.7+

❗ Disclaimer

SMTP verification may not work with all servers, as some may reject or throttle unknown connections.

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

smtp_email_validator-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smtp_email_validator-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file smtp_email_validator-0.1.1.tar.gz.

File metadata

  • Download URL: smtp_email_validator-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for smtp_email_validator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f3c6cc8537ab676fdae96de637bfc485b90a2c8b151215514621b362656588b0
MD5 733aafd61cb5cf6c8e5cee0b3dd59a9f
BLAKE2b-256 d6f485ed2adc437920ddc8844b888619324f8a68c7ad6ec0a46d9c7dd8544467

See more details on using hashes here.

File details

Details for the file smtp_email_validator-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for smtp_email_validator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2dde898ace1b688f8530b6b3798650035850158e1d7ef543dc957c356c07272
MD5 a37bddb358a72e7020ae907ff924f3e8
BLAKE2b-256 cc003ee42581e9bbac40e3407f6264e0ebd35a853f3707a67ce862ca15a3c764

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