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 emailverifier

🚀 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.0.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.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smtp_email_validator-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 36895929d10541fe4cb01d1b4114f3179a4ca2defda2a3a539f717197904eb70
MD5 c6ff17bb18c9abfdebc3fe633c6a2a5a
BLAKE2b-256 971687cc4231a1d09f436c3c32d47079e14544ccf93c55507842f2ea2fedfc6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smtp_email_validator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a704dfbc647edeb99295b5ba93e73d255f67c44175666cd9238944f13b588c0
MD5 e50a14d3b78b26e4579a38579bb92a69
BLAKE2b-256 a11acfe9793ff8be49fb181db515d41673a04be753181528c63402ecd83ea327

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