• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
stevekrouse

stevekrouse

free-mail

Check if email is from gmail, outlook, etc
Public
Like
1
free-mail
Home
Code
3
README.md
domains.txt
main.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/5/2025
Viewing readonly version of main branch: v16
View latest version
README.md

Free Email Checker

Simple utility to check if an email address uses a free email provider.

This is useful if you want to rule out generic personal emails, like gmail, outlook, etc.

Usage

Create val
import { isFreeEmail } from "https://esm.town/v/stevekrouse/free-mail/main.ts"; await isFreeEmail("user@gmail.com"); // false (is free email) await isFreeEmail("user@company.com"); // true (not free email)

How it works

  • Loads a list of free email domains from domains.txt
  • Returns false if the email domain is in the free domains list
  • Returns true if the email domain is NOT in the free domains list

Domain list sourced from HubSpot's blocked domains feature.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.