# Python Email Permutation & Verification Script

> Find valid corporate email addresses by testing permutations against a verification API

This technique combines programmatic email permutation generation with an email verification API in Python. Given a first name, last name, and domain, the script cycles through standard corporate patterns and stops once an address tests reachable. It allows you to discover direct contact emails without relying on expensive B2B lead databases.

## How it works

Logic demonstrated in Python:

1. Input: first\_name, last\_name, domain (e.g., 'Grant', 'Cardone', 'cardonecapital.com').
2. Call generate\_emails(first\_name, last\_name, domain) to produce common corporate email permutations (first.last@, f.last@, first@, etc.).
3. Loop through generated emails and call check\_email(email), which sends a POST request with {'email': email} to an email verification endpoint/API.
4. Check if response.get('is\_reachable') == 'safe'. If safe, save the response and break the loop to avoid unnecessary API calls.
5. Output the result into a JSON log containing deliverability, MX records, and SMTP connection data (e.g., is\_catch\_all, is\_deliverable).

## What it is for

- Find direct business email addresses for executive prospects
- Verify corporate email deliverability before sending cold outreach
- Reduce reliance on paid lead enrichment databases like Apollo or Hunter

## Key points

- Generate common corporate email permutations from first name, last name, and company domain
- Send POST requests to an email validation API to check reachability
- Check deliverability, MX records, and SMTP connection status in JSON responses
- Break permutation loops immediately upon finding a 'safe' address to conserve API credits
- Flag disposable addresses, role-based accounts, and catch-all domains

## Pricing

Free DIY script; requires a third-party email verification API key

## Details

- Type: Tip
- Category: [Marketing & Sales](https://xiry.app/topics/marketing-sales.md)
- Topic: [Lead Generation](https://xiry.app/topics/marketing-sales/lead-generation.md)
- Open source: no
- Platforms: Command line
- For: Developers, sales engineers, and growth marketers doing cold outreach
- Alternative to: Hunter.io, Apollo.io, Anymail Finder, NeverBounce
- Tags: email verification, lead generation, python, cold outreach, smtp

## Why it was saved

- [@itsmikepowers, 1 July 2024](https://www.instagram.com/reel/C83XMhKps4B/): Enables finding and verifying executive business email addresses without paying for expensive cold outreach databases like Apollo or Hunter.

## Compare

- [Alternatives to Apollo.io](https://xiry.app/alternatives/apollo-io.md)
- [Alternatives to Hunter.io](https://xiry.app/alternatives/hunter-io.md)

## Related

- [Parser.im](https://xiry.app/resources/parser-im): Cloud scraping and monitoring service for Instagram audience and contact data (Web app, Freemium)
- [Seamless.AI](https://xiry.app/resources/seamless-ai): Real-time B2B search engine for verified emails, phone numbers, and leads (Web app, Freemium)
- [AI Accelerator](https://xiry.app/resources/ai-accelerator): Free Skool community sharing AI automation workflows, tutorials, and business systems. (Free)
- [AI Lead Generation Agent](https://xiry.app/resources/ai-lead-generation-agent): Open-source agent workflow finding leads on Quora and exporting to Google Sheets (Web app, Open source)
- [Claude Code + Exa Lead Generation Workflow](https://xiry.app/resources/claude-code-exa-lead-generation-workflow): Step-by-step terminal workflow for building scored B2B lead lists (Tip, Free)
- [Competitor Review Cold Email Playbook](https://xiry.app/resources/competitor-review-cold-email-playbook): A cold outreach tactic targeting angry competitor reviewers mid-churn. (Tip, Free)

Updated 3 October 2026. Page: https://xiry.app/resources/python-email-permutation-and-verification-script

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
