Fix mailto: links once. Ship and done.
Zero-dependency library that intercepts broken mailto: links and shows a smart picker. Works in under 1ms with zero network requests.
The mailto: protocol was designed in 1997 for a world where every computer had a desktop email client. That world no longer exists. Today, 40% of users have no mail client configured, and corporate users are locked into webmail.
smart-mailto intercepts every mailto: link on your page and shows a beautiful modal with the user's preferred email provider. It detects region automatically using only browser APIs — no IP lookup, no cookies.
“One line of code. Every mailto: link on your site now works for everyone, everywhere.”
— README, @smart-mailto/core
import { initSmartMailto } from '@smart-mailto/core';// One line. That’s it.initSmartMailto({ theme: 'dark', autoDetectGeo: true});