Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/vrashmanyu605-eng/Agentic_Sales-Markerting/llms.txt

Use this file to discover all available pages before exploring further.

The email generator produces a list of candidate email addresses by applying the five most common corporate email naming conventions to a person’s name and their company’s domain. Rather than guessing blindly, this approach covers the formats used by the majority of companies, giving outreach agents a set of addresses to work with when no verified contact email is available.
These are candidate emails — not verified addresses. Use an email verification service to confirm deliverability before sending outreach.

Source code

email_generator.py
def generate_possible_emails(
    first_name,
    last_name,
    domain
):

    first = first_name.lower()
    last = last_name.lower()

    emails = [

        f"{first}@{domain}",

        f"{first}.{last}@{domain}",

        f"{first}{last}@{domain}",

        f"{first[0]}{last}@{domain}",

        f"{first}_{last}@{domain}"
    ]

    return emails

generate_possible_emails()

Generates five email address candidates using the most common corporate naming conventions.

Parameters

first_name
string
required
The person’s first name. Converted to lowercase before use.
last_name
string
required
The person’s last name. Converted to lowercase before use.
domain
string
required
The company’s email domain, e.g. "example.com". Do not include @ — it is added automatically.

Return value

Returns a list of exactly 5 email address strings.
emails
list[string]
Five candidate email addresses derived from the inputs, in the order listed in the formats table below.

Email formats generated

FormatPatternExample
First name onlyfirst@domain[email protected]
First dot lastfirst.last@domain[email protected]
First and last concatenatedfirstlast@domain[email protected]
Initial and lastflast@domain[email protected]
First underscore lastfirst_last@domain[email protected]

Example

from tools.email_generator import generate_possible_emails

emails = generate_possible_emails("John", "Smith", "example.com")
print(emails)

Build docs developers (and LLMs) love