
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
resolve-email
Advanced tools
Resolve the domain of an email address to see if it even has a chance of delivering
Resolve the domain of a syntactically valid email address to see if there is even a chance of deliverability. Also checks against a large list of disposable email and other junk/unwated address domains and rejects those. It also checks the email address against the (updated) zod reasonable email regex and filters out unreasonable email addresses.
npm install resolve-email
import { resolveEmail } from 'resolve-email'
// Validate the email address before passing it in here:
const results = await resolveEmail('person@gmailc.om')
console.log(results)
// results.emailResolves true/false
// results.mxRecords [array of mx records and priorities]
// results.error any errors that may have occurred.
This module was adapted from nodemailer/nodemailer-direct-transport
The disposable email domain list is generated from the following data sources:
MIT
FAQs
Resolve the domain of an email address to see if it even has a chance of delivering
We found that resolve-email demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.