πŸ“Š

Email Validator

Check a list of 1000 emails to identify which are valid, which are syntax errors, and which are fake domains to clean your marketing list.

Excel ⭐ Beginner ⏱️ 3 minutes

😫 The Pain Point

You send a marketing campaign to 1,000 users, but 30% bounce back because of bad emails: gmail.com.vn, gmai.com, yahoo@123. Mailchimp or SendGrid will ban your account if your bounce rate is too high. You need to scrub the list first.

πŸš€ Agentic Solution

A 3-Layer Filter: Syntax (Format) -> Domain (Real website) -> MX Record (Mail server exists).

Key Features:

  • Regex Check: Eliminates obvious typos like @gmai.com.
  • MX Check: (Advanced) Pinngs the DNS to see if the domain actually accepts emails.

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

For basic cleanup.

Prompt:

β€œI have an emails.txt file. Write a script to check the syntax of each email using Regex. Remove invalid formats (missing @, missing dot). Save valid emails to valid_emails.txt.”

Result: A clean text file.

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

For Professional Marketers.

Engineering Prompt:

**Role:** Python Network Developer
**Task:** Create an "Email List Cleaner" App.
**Requirements:**
1.  **GUI:**
    *   Select Input CSV/Excel.
    *   Select Column containing Emails.
    *   "Validate" button.
2.  **Logic:**
    *   **Level 1 (Syntax):** Use robust Regex to check structure.
    *   **Level 2 (Domain):** Check if domain resolves to an IP.
    *   *Optional Level 3 (MX):* Use `dnspython` to check MX records.
    *   Tag each row: 'Valid', 'Invalid Syntax', or 'Invalid Domain'.
3.  **Deliverables:** `email_validator.py`, `run.bat` (Windows), `run.sh` (Mac).

🧠 Prompt Decoding

  • MX Record: Checks if the β€œhouse” actually has a mailbox. Many emails look correct (user@fake-domain.com) but the domain doesn’t exist. Checking MX records prevents these β€œsoft bounces”.

πŸ› οΈ Instructions

  1. Copy Prompt -> Paste -> Run.
  2. Select Excel -> Validate -> Filter invalid rows.

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.