A modern revival of the original Mailcheck β now maintained and improved!
Mailcheck++ suggests corrections when users misspell email domains β like gmial.com instead of gmail.com. It helps reduce signup errors, improve data quality, and enhance user experience.
This is a continuation of the original Mailcheck project by @derrickko, built under the MIT License. While that version is no longer actively maintained, this fork-free reboot brings it up to date with modern JavaScript standards and community-driven improvements.
- π§ Smart domain, top-level domain, and second-level domain corrections
- π οΈ Written in modern, modular JavaScript (ESM)
- β‘ Fast, lightweight, and dependency-free
- β Tested with real-world typos and domains
- π Supports custom domain lists and localizations
import { MailcheckPlusPlus } from "https://cdn.jsdelivr.net/gh/gartenkralle/[email protected]/js/modules/mailcheck-plus-plus.js";
const emailInput = document.getElementById('email');
const suggestion = document.getElementById('suggestion');
emailInput.addEventListener('blur', () => {
const result = MailcheckPlusPlus.checkEmail(emailInput.value);
suggestion.textContent = result ?
`Did you mean: ${result.full}?` :
'No suggestions available.';
});- Fully ES Module-compatible
- Improved typo detection
- Rewritten for better performance and maintainability
This project is based on the original Mailcheck by derrickko. Licensed under the MIT License.
MIT Β© Clemens Schneider