A Python script to bulk validate email addresses using format, DNS, and SMTP checks.
This project provides a simple yet powerful email validation tool that reads email addresses from a text file and validates each one through multiple verification methods. It checks email format, DNS records, and SMTP server responses to determine if an email address is valid. Results are separated into two output files for valid and invalid emails.
- Bulk email validation from text file input
- Multi-layer validation (format, DNS, and SMTP checks)
- Progress bar visualization using tqdm
- Automatic separation of valid and invalid emails into separate output files
- Configurable timeout settings for DNS and SMTP checks
- Python 3
- py3-validate-email - Email validation library
- tqdm - Progress bar library
# Clone the repository
git clone https://github.com/bryanseah234/validate-email-code.git
# Navigate to project directory
cd validate-email-code
# Install dependencies
pip install py3-validate-email tqdm# Run the validation script
python validateemail.py- Create a text file named
emails.txtin the same directory as the script - Add email addresses to validate (one per line)
- Run the script using the command above
- Check the output:
true emails.txt- Contains valid email addressesfalse emails.txt- Contains invalid email addresses
- FOR EDUCATIONAL PURPOSES ONLY
- USE AT YOUR OWN DISCRETION
MIT License
Author: bryanseah234