
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
email-validator-ultimate
Advanced tools
Advanced email validator ultimate library for Node.js. Includes format checks, MX records, SMTP inbox validation, disposable email detection, and quality scoring. email validation email validator
A powerful Node.js email validation library that goes beyond regex.
Performs DNS/MX record checks, SMTP deliverability tests, disposable email detection, and more.
If you want to check if an email inbox exists (SMTP/bounce check), make sure:
fromEmail
sender (e.g., noreply@yourdomain.com
).admin
, info
)npm install email-validator-ultimate
Basic Example (ESM)
import { validateEmail } from 'email-validator-ultimate';
const result = await validateEmail({
email: 'someone@example.com',
fromEmail: 'noreply@yourdomain.com',
smtpCheck: true, // Enable SMTP validation (optional)
debug: true // Optional SMTP debug logs
});
console.log(result);
Using with Express (CommonJS)
const { validateEmail } = require('email-validator-ultimate');
app.post('/validate', async (req, res) => {
const result = await validateEmail({
email: req.body.email,
fromEmail: 'noreply@yourdomain.com',
smtpCheck: true
});
res.json(result);
});
{
"email": "someone@example.com",
"username": "someone",
"domain": "example.com",
"formatValid": true,
"hasMX": true,
"isDisposable": false,
"isGeneric": false,
"isFree": false,
"provider": "Example",
"mxRecord": "mx1.example.com",
"canReceiveEmail": {
"smtpSuccess": true,
"message": "SMTP verification passed",
"catchAll": false
},
"qualityScore": 92
}
Option | Type | Required | Description |
---|---|---|---|
string | ✅ | Email address to validate | |
fromEmail | string | ✅ | Email sender used for SMTP (if enabled) |
smtpCheck | boolean | ❌ | Enable SMTP inbox check (default: false) |
debug | boolean | ❌ | Log SMTP conversation to console |
Contributions are welcome! Whether it's reporting bugs, suggesting features, or submitting pull requests, your help is appreciated.
Please follow these guidelines:
git checkout -b feature/your-feature
)git commit -m 'Add some feature'
)git push origin feature/your-feature
)Make sure your code passes all tests and adheres to the existing style.
This project is licensed under the MIT License — see the [LICENSE] file for details.
© 2025
Mehedi Hasan
📧 aminulislamdev23@gmail.com
🌐 GitHub
Email validation · SMTP check · Disposable email detection · MX record lookup · Catch-all detection · Email format validation · Node.js email validator · Email quality scoring · Generic username detection
FAQs
Advanced email validator ultimate library for Node.js. Includes format checks, MX records, SMTP inbox validation, disposable email detection, and quality scoring. email validation email validator
The npm package email-validator-ultimate receives a total of 1 weekly downloads. As such, email-validator-ultimate popularity was classified as not popular.
We found that email-validator-ultimate 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 is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.