πŸ“Š

Email Validator

Validate email addresses in bulk with syntax check and optional MX record verification.

Excel ⭐⭐ Intermediate ⏱️ 5 minutes

😫 The Pain Point

Your marketing list has 5000 emails. Before spending on email campaigns, you need to verify they’re real. Typos like β€œgmial.com” waste money. Invalid domains bounce.

πŸš€ Agentic Solution

A Multi-Level Email Validator that checks syntax and mail server existence.

Key Features:

  • Syntax Check: Valid format (user@domain.com).
  • Domain Check: Does the domain exist?
  • MX Record Check: Does the domain accept email?

βš”οΈ Phase 1: Commander (Quick Fix)

For quick validation.

Prompt:

β€œI have an Excel emails.xlsx with column β€˜Email’. Write a Python script using dnspython to:

  1. Syntax Check: Validate email format with regex.
  2. MX Check: Verify domain has MX records.
  3. Classify: Valid, Invalid_Syntax, Invalid_Domain.
  4. Output: Save with β€˜Status’ column.

Print validation summary. Handle timeouts gracefully.”

Result: Clean email list with bad addresses flagged.

πŸ—οΈ Phase 2: Architect (Permanent Tool)

Engineering Prompt:

**Role:** Python Tool Developer
**Task:** Create an "Email Validator".

**Requirements:**
1.  **GUI:**
    *   Select Excel file.
    *   Column picker.
    *   Validation level: Syntax / +Domain / +MX.
    *   Progress bar.
    *   Export clean/invalid lists.

2.  **Logic:**
    *   Regex for syntax.
    *   DNS lookup for domain.
    *   Concurrent MX checks for speed.
    *   Cache domain results.

3.  **Deliverables:**
    *   `email_validator.py`
    *   `run.bat`, `run.sh`
    *   `requirements.txt`

🧠 Prompt Decoding

  • MX Records: Mail eXchanger records indicate a domain can receive email.

πŸ› οΈ Instructions

  1. Install: pip install dnspython
  2. Copy Prompt β†’ Run.

Related Workflows

Explore other categories

πŸ“¬

Get Started with Agentic Working

Subscribe to receive updates from AgenticWorking.io

πŸ“– Free eBook Guide πŸ“¦ 7 Ready-to-use Scripts πŸ”” Weekly Tips

No spam, unsubscribe anytime. Join 1,000+ subscribers.