Integrations
Signup form widget
A 5 KB script checks the address when the visitor leaves the field (or pauses typing) and can stop the form from being sent with an invalid or disposable address.
Set up
- Create a widget key under Dashboard → Integrations and list the exact origins of your pages, e.g.
https://www.example.com. - Add the script and the
data-mailsfitattribute to your email field:
<script src="https://mails.fit/widget.js" defer></script>
<input type="email" name="email" required
data-mailsfit="mf_pub_…"
data-mailsfit-block="invalid">Options
data-mailsfit-block="invalid"(default): invalid addresses block the form; risky ones show a warning.data-mailsfit-block="invalid,risky": both block.data-mailsfit-block="none": only show messages.- Disposable addresses count as invalid when the key says so (set when you create it).
The answer is only ok, risky or invalid with an optional typo suggestion, or unavailable once the key's daily cap is reached. Each check uses one credit of the key's owner; unknown results are refunded. If the check cannot run (cap reached, no credits, network error), the form is never blocked.
document.querySelector('[data-mailsfit]')
.addEventListener('mailsfit:result', (e) => {
console.log(e.detail.status, e.detail.suggestion);
});Security
A publishable key (mf_pub_…) can only call the widget check. Browsers only send it from the origins you listed, but the key sits in your page source and scripts outside a browser can send any Origin, so the origin list is not a hard boundary. What bounds the cost is the key's daily cap (default 500 checks, 1 to 50,000, set in the dashboard; we email you the first time it is reached each day) and its rate limits: 30 checks a minute per key and 10 a minute per key and visitor IP. Keep your secret mf_live_ keys out of web pages.
Live demo
To try it here, sign in and create a widget key that allows https://mails.fit under Dashboard → Integrations.