# sendm8 > sendm8 is a free, open-source form backend. Point any HTML form at a URL and get submissions by email, Discord, Slack, Telegram or webhook. No signup needed. Quickstart: a working contact form, with no account and no API key. Replace `you@example.com` with the address that should receive submissions. The first submission emails that address a one-time confirmation link; later ones are delivered straight away. ```html
``` Key facts: - Endpoint: `POST https://sendm8.com/f/{formId}`, or `POST https://sendm8.com/f/{email}` with no account (the owner confirms once by email). - Send `Accept: application/json` to get JSON back. Success: `{ "ok": true, "id": "…" }`. Failure: `{ "ok": false, "error": { "code": "…", "message": "…" } }` with a 4xx or 5xx status. - On a `/f/{email}` endpoint the owner hasn't confirmed yet, success also has `"pending": "confirmation"` and a `message` saying when the confirmation link was emailed (address masked): the submission is stored but not delivered until it's clicked. One link is sent per 24 hours, plus one reminder after three days if messages are waiting. - Email endpoints refuse posts that claim to come from sendm8.com itself (`400 invalid_origin`), and forms without an account have a lower monthly submission cap than signed-in ones (lifted when the owner signs in with the same address); the owner is emailed as they near it. - Special fields match Formspree: `_replyto` (or `email`), `_subject`, `_next`, `_gotcha`, `_cc`. - React apps: `npm install @sendm8/react`. Same `useForm` and `ValidationError` as `@formspree/react`, field errors included. Also render one `` without a `field`, for errors that aren't about a field. - Submissions go to the form's owner. sendm8 is not an API for emailing other people: in `/f/{email}` the address is the owner's, never a recipient's, and throwaway domains (yopmail, mailinator…) and reserved ones (example.com, *.test…) are refused. For invitations, receipts or password resets, use an email API such as Resend. - Forms are created by a person in the dashboard at https://sendm8.com/app. There's no API key for creating forms. Human-readable version: https://sendm8.com/docs ## The basic form Point any HTML form at your sendm8 endpoint with `method="POST"`. Every field with a `name` is stored and delivered, using the names you chose. Keep your own markup, styling and validation: we don’t inject anything into your page. There are two kinds of endpoint, and they work the same way: - **`/f/you@example.com`**: no account needed. Great for trying it out and for small sites. [How it works](https://sendm8.com/docs/zero-signup/). - **`/f/k3x9q2m7ab`**: a form you created in the dashboard. The id keeps your email address out of your page source, and unlocks channels, allowed domains and your own Resend key. **HTML: `contact.html`** ```html
``` **React: `ContactForm.jsx`** ```jsx export function ContactForm() { return (
``` 1. **Someone submits the form** It might be you testing it. We store the submission safely, and the visitor sees the thank-you page as normal. 2. **We send one confirmation email** It goes to the address in the URL and asks whether you want submissions from this form. It comes from `notify@sendm8.com`. 3. **You click Confirm** The form goes live, and anything that arrived while we were waiting is delivered to you straight away. 4. **Every submission after that just arrives** No more confirmation emails for that address. > **The address in the URL is yours** > > Submissions go to the address in the URL, and that has to be you, the site owner. sendm8 isn’t a way to email your users: invitations, receipts and password resets need an email API like [Resend](https://resend.com). Throwaway inboxes such as `yopmail.com` can’t be used, because anyone can read them, and neither can reserved test domains like `example.com`, which can’t receive mail at all. > **Limits without an account** > > A form with no account keeps 100 submissions a month, and only 10 instant emails go out a day: the rest arrive in one digest at 18:00 UTC. We email you when a form passes 80% of its monthly limit, and again when it reaches it. Signing in with the same address lifts the limit to 1,000 and puts every submission in your dashboard as it arrives. > **One confirmation per 24 hours** > > To stop people using sendm8 to spam random inboxes, we send at most one confirmation email to an address every 24 hours, and we don’t resend it while it’s waiting. Can’t find it? Check your spam folder first. If it’s really gone, submit the form again once 24 hours have passed. If messages are waiting and three days go by without an answer, we send one reminder, and only one. Zero-signup forms send email only. When you want Discord, Slack, webhooks or the dashboard inbox, [sign in](https://sendm8.com/app/sign-in) with GitHub or Google using the same verified email address, and your existing forms move into your account automatically. That includes forms sent to a`+tag` of it, like `you+portfolio@example.com`, and anything still waiting for confirmation is delivered then. Signed in with a different address, like your personal email for a form that goes to `hello@yourbusiness.com`? Add the form’s address under **Settings** in the dashboard and click the link we send it. Once it’s verified, its forms move into your account too. --- ## Special fields A few field names starting with an underscore change how a submission is handled. They match Formspree’s, so if you’re moving over, changing the URL is the only edit you need. Underscore fields are used and then removed: they aren’t stored with the submission. | Field | Also accepts | What it does | | --- | --- | --- | | `_replyto` | `email` | Sets Reply-To on the notification email, so hitting reply answers the person who wrote in. Must be a valid address. | | `_subject` | None | The subject line of the notification email. | | `_next` | `_redirect` | Where to send the visitor after a normal form post. Must be on the same site as the form, or one of its allowed domains. [Redirects](https://sendm8.com/docs/redirects/). | | `_gotcha` | `_honeypot` | A hidden honeypot. If it has anything in it, the submission is treated as spam. [Spam protection](https://sendm8.com/docs/spam/). | | `_cc` | None | Extra recipients, comma-separated. Only addresses you’ve verified in your account get a copy, so it can’t be used to email strangers. | `contact.html` ```html
``` --- ## AJAX / fetch Want to stay on the page and show your own message? Send the form with `fetch` and an `Accept: application/json` header. Instead of a redirect you get JSON back, with a proper HTTP status code. It works with any framework, or none. Using React? [`@sendm8/react`](https://www.npmjs.com/package/@sendm8/react) does this for you: a `useForm` hook that tracks sending, success and errors, with the same API as `@formspree/react`. **FormData: `contact.js`** ```js const form = document.querySelector("#contact"); form.addEventListener("submit", async (event) => { event.preventDefault(); const res = await fetch("https://sendm8.com/f/k3x9q2m7ab", { method: "POST", body: new FormData(form), headers: { Accept: "application/json" }, }); const result = await res.json(); if (result.ok) form.replaceWith("Thanks! It's on its way."); else alert(result.error.message); }); ``` **HTML: `contact.html`** ```html
``` **JSON body: `contact.js`** ```js const res = await fetch("https://sendm8.com/f/k3x9q2m7ab", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json", }, body: JSON.stringify({ email: "alex@moreno.dev", message: "Hiya! Are you free in October?", }), }); const result = await res.json(); // { ok: true, id: "01K53N7XQ2R8M4DE7Q2K9F4X3M" } ``` **React: `ContactForm.jsx`** ```jsx // npm install @sendm8/react import { useForm, ValidationError } from "@sendm8/react"; export function ContactForm() { const [state, handleSubmit] = useForm("k3x9q2m7ab"); if (state.succeeded) return

Thanks! It's on its way.

; return (
``` - **No JavaScript? Still works.** The form posts the normal way and visitors land on your thank-you page, so nobody gets stuck. - `data-sendm8-success`: the message to show, or a selector like `#thanks` for an element to reveal. The default is “Thanks! Message sent.” The form is cleared afterwards. - `data-sendm8-error`: a selector for where errors go. Without it we add a `role="alert"` paragraph to the form. The text is the API’s own plain-English error, like “This form isn’t accepting submissions right now.” - Listen for `sendm8:success` (`event.detail.id`) and `sendm8:error` (`event.detail.message`, `code`, `status`) on the form. Call `event.preventDefault()` to skip the built-in message and do your own thing. - Opt a form out with `data-sendm8="off"`. For a manual send, `window.sendm8.submit(form)` returns a promise of `{ ok, id, error }`. `optional.js` ```js const form = document.querySelector("form[data-sendm8]"); form.addEventListener("sendm8:success", (event) => { console.log("Stored as", event.detail.id); }); form.addEventListener("sendm8:error", (event) => { console.warn(event.detail.code, event.detail.message); }); ``` > **Small and dependency-free** > > About 6 KB, no libraries, works in every browser with `fetch`. It only touches forms with `data-sendm8` whose `action` is a sendm8 `/f/` endpoint, and adds nothing to the page apart from an optional `window.sendm8`. --- ## Redirects & thank-you page After a normal form post (not AJAX), sendm8 answers with a `303` redirect, so refreshing the next page never submits the form twice. Where the visitor lands is decided in this order: 1. The `_next` field in the form, if there is one. 2. The redirect URL in the dashboard, under **Form settings → General**. 3. Our default thank-you page. `contact.html` ```html
``` > **Redirects stay on your own sites** > > `_next` only works for a page on the same site the form was sent from or, once the form has allowed domains (**Form settings → General → Allowed domains**), on one of those. If it points anywhere else, we ignore it and show the default thank-you page. This stops a sendm8 form being used as an open redirect to send people to a phishing site. The default thank-you page is deliberately quiet: it thanks the visitor, links back to the page they came from and carries a small “Powered by sendm8” and a report link. Your visitors see it, not you, so it doesn’t try to sell them anything. [See the default thank-you page](https://sendm8.com/thanks). --- ## Spam protection Spam protection is on for every form. Spam is still stored, in its own folder, so you can check nothing real was caught. It’s never delivered, and it’s deleted after 30 days. Nothing goes to spam silently. When our filters catch something, your inbox shows how much went to spam that week, and you get one email about it, at most once a week, that flags any close calls worth a second look. #### Honeypot A field that’s hidden from people but visible to bots, which tend to fill in everything. Anything in it marks the submission as spam. Call it `_gotcha`, or pick your own name in **Form settings → Spam**. `honeypot` ```html ``` #### Rate limits and heuristics Each visitor can send 10 submissions a minute to a form, and a form takes 120 a minute in total. Past that, they get a `429`. We count by a one-way hash of the IP address and never store the address itself. Then come the quick checks: a message stuffed with links, well-known spam phrases, throwaway email domains, a message that’s only a URL, and keyboard-mash gibberish. A post with no browser and no page behind it (a script, in other words) counts a little against it too, though never enough on its own to be spam: plenty of honest server-to-server posts look exactly like that. Each check adds to a score out of 1. At **0.8** the submission goes to the spam folder instead of being delivered; below that it arrives as normal, with the score and the reasons shown next to it. #### Cloudflare Turnstile Turnstile is Cloudflare’s free alternative to “click all the traffic lights”. There are two ways to use it, depending on how your form is sent. For plain HTML forms ##### Challenge page No setup. Turn it on in **Form settings → Spam**. When a submission looks borderline, the visitor is sent to a short check on `sendm8.com/c/…`. Once they pass, the submission goes through and they carry on to your thank-you page. [See the challenge page](https://sendm8.com/c/demo) For AJAX forms ##### Bring your own Turnstile AJAX can’t follow a redirect to a challenge, so put the widget on your own form instead. We check the token it adds with your secret key. Bring your own Turnstile, step by step 1. In the Cloudflare dashboard, open **Turnstile** and add a widget. Add your site’s hostname (for example `yourstudio.com`). 2. Copy the **site key** into the widget on your form, as below. 3. Paste the **secret key** into sendm8 under **Form settings → Spam → Turnstile → Bring your own**. It’s stored encrypted. 4. That’s it. The widget adds a `cf-turnstile-response` field, and `FormData` picks it up automatically. Submissions without a valid token get a `403`. `contact.html` ```html
``` #### AI spam score On for new forms, and switchable in **Form settings → Spam**. A small model scores each message after it’s been stored, so it never slows your visitor down. Its score is kept on every submission it looks at, so you can see what it made of the quiet ones too, and anything it’s confident about moves to spam before it’s delivered. The model reads English best, so for messages written mostly in another script, such as Persian, Arabic, Chinese or Cyrillic, its score is shown but it can’t send them to spam on its own. The exception is a message whose sender’s name is in Latin letters, like “Brianric” on a Russian message, because that’s how form-spam bots tend to write. #### Phishing guard > **Forms that ask for passwords are held** > > Free form backends get used to collect stolen logins. If a form has fields named like `password`, `card_number`, `cvv`, `ssn` or `seed phrase`, its submissions are held instead of delivered, and the form is flagged for review. If that’s a false alarm (say, a “forgot password” support form), the dashboard explains what to do. --- ## File uploads Add `enctype="multipart/form-data"` to the form and use normal file inputs. Without the `enctype`, browsers send only the file name, not the file. `apply.html` ```html
``` - **Per file**: 5 MB - **Per submission**: 10 MB - **Too big**: 413 If any file is over the limit, the whole submission is refused with a `413`, so nothing arrives half-finished. It’s worth putting the limit next to the input, and checking `file.size` in the browser if you’re using AJAX. Files appear on the submission in your dashboard. Notification emails and channel messages include a link to download them rather than the files themselves, so nobody’s inbox fills up with attachments. --- ## Connect Discord Send every submission to a Discord channel. It uses a Discord webhook, so there’s no bot to invite and no permissions to grant. You’ll need **Manage Webhooks** on the server. 1. In Discord, open the server menu and choose **Server Settings → Integrations**. 2. Click **Webhooks**, then **New Webhook**. 3. Give it a name (sendm8 is fine), pick the channel submissions should go to, and click **Copy Webhook URL**. 4. In sendm8, open **Form settings → Channels → Discord** and paste it. It should start with `https://discord.com/api/webhooks/`. 5. Hit **Send test**. A test message should appear in the channel within a couple of seconds. #### What it looks like _Example Discord message from sendm8:_ > Studio contact · new submission > > Alex Moreno wrote in > > - **name**: Alex Moreno > - **email**: alex@moreno.dev > - **message**: Hiya! Loved the portfolio. Are you free for a quick project in October? > > SM8 7Q2K 9F4X 3M · Spam score 0.04 · View in dashboard > **Slack and Telegram work the same way** > > For Slack, create an incoming webhook for your channel and paste the `https://hooks.slack.com/…` URL. For Telegram, the dashboard walks you through making a bot and finding your chat id. Every channel has a Send test button, and none of them count towards the email limit. --- ## Connect Resend (BYOK) Out of the box, notifications go through our shared sender, which sends up to 10 instant emails a day per account (the rest arrive in your daily digest). Add your own [Resend](https://resend.com) API key and every notification goes through your Resend account instead: no daily cap from us, and it comes from your own domain. 1. In Resend, go to **Domains**, add the domain you want to send from and add the DNS records it shows you. Wait until it says **Verified**. 2. Go to **API Keys → Create API Key**. Choose **Sending access** (you can limit it to that one domain) and copy the key. It starts with `re_` and Resend only shows it once. 3. In sendm8, open **[Account → Email](https://sendm8.com/app/account/email)**, paste the key and click **Save**. We check it works straight away. 4. Pick the From address, for example `forms@yourstudio.com`, then send yourself a test. Keys are encrypted before they’re stored and are never shown in full again: you’ll only see something like `re_••••4f2a`. To remove one, delete it in sendm8, and revoke it in Resend too for good measure. > **If your key stops working** > > If Resend rejects your key (it was revoked, or your Resend quota ran out), we don’t quietly switch you back to our sender. Notifications wait for your 6pm UTC digest instead, and a banner in the dashboard tells you what went wrong. Submissions are still stored, and Discord, Slack and webhooks carry on as normal. --- ## Webhooks Add a webhook in **Form settings → Channels → Webhook** and we’ll `POST` every submission to your URL as JSON. It needs to be `https` and publicly reachable: private IP ranges and bare IP addresses are blocked. You’ll get a signing secret when you add it. #### The request `Headers` ```http POST /hooks/sendm8 HTTP/1.1 Content-Type: application/json User-Agent: sendm8-webhooks X-Sendm8-Signature: t=1789400527,v1=5967b4fd69839aeb4fabdbcee4b69e8e2f3f690d2602b67034f1b30382e1b79e ``` `Body` ```json { "event": "submission.created", "id": "01K53N7XQ2R8M4DE7Q2K9F4X3M", "tracking": "SM8 7Q2K 9F4X 3M", "created_at": "2026-09-14T15:42:07Z", "form": { "id": "k3x9q2m7ab", "name": "Studio contact" }, "data": { "name": "Alex Moreno", "email": "alex@moreno.dev", "message": "Hiya! Are you free for a quick project in October?" }, "files": [], "spam": { "score": 0.04, "verdict": "ok" } } ``` #### Checking the signature Anyone can post to a public URL, so check that a request really came from us. `X-Sendm8-Signature` holds a Unix timestamp `t` and a signature `v1`. The signature is an HMAC-SHA256, in hex, of the timestamp, a full stop and the raw request body, using your signing secret. **verify.js** ```js import { createHmac, timingSafeEqual } from "node:crypto"; const FIVE_MINUTES = 5 * 60; // rawBody must be the exact bytes we sent, before any JSON parsing. export function verifySendm8(rawBody, header, secret) { const parts = Object.fromEntries( header.split(",").map((pair) => pair.trim().split("=")), ); const t = Number(parts.t); if (!t || !parts.v1) return false; // Ignore old deliveries, so a captured request can't be replayed later if (Math.abs(Date.now() / 1000 - t) > FIVE_MINUTES) return false; const expected = createHmac("sha256", secret) .update(`${t}.${rawBody}`) .digest("hex"); const a = Buffer.from(expected); const b = Buffer.from(parts.v1); return a.length === b.length && timingSafeEqual(a, b); } ``` **Using it: `worker.js`** ```js // Example: a fetch-style handler (Cloudflare Workers with nodejs_compat, Bun, Deno) export default { async fetch(request, env) { const raw = await request.text(); const header = request.headers.get("X-Sendm8-Signature") ?? ""; if (!verifySendm8(raw, header, env.SENDM8_WEBHOOK_SECRET)) { return new Response("Bad signature", { status: 401 }); } const submission = JSON.parse(raw); // ...do something with submission.data return new Response(null, { status: 204 }); }, }; ``` > **Delivery and retries** > > Reply with any `2xx` within 5 seconds. Do slow work after you’ve answered. If we get an error or a timeout, we try again after 1m, 5m, 30m, 2h, 12h: 5 more attempts in all. Each retry has a fresh timestamp and signature, so it’s worth using the submission `id` to ignore duplicates. --- ## Moving from Formspree sendm8 reads Formspree’s usual field names (`email`, `_replyto`, `_gotcha` and friends), so a plain HTML form usually moves with a one-line change: the `action` URL. If yours sets the subject with a plain `subject` field, rename it`_subject`. Code that sends forms with JavaScript needs a small change to how it reads errors. Still deciding? [sendm8 vs Formspree](https://sendm8.com/vs/formspree/) compares the free plans side by side, and[Formspree alternatives](https://sendm8.com/formspree-alternative/) covers the other options too. Moving a form 1. **Get a sendm8 endpoint.** Create a form in the [dashboard](https://sendm8.com/app) and copy its URL, or skip signing up and use `https://sendm8.com/f/you@example.com`. 2. **Swap the URL** everywhere the form posts to `https://formspree.io/f/…`. 3. **Send a test submission** and check it arrives where you expect. Then add Discord, Slack, Telegram or webhooks if you like. **After: `contact.html`** ```html
``` **Before: `contact.html`** ```html
``` #### What maps to what | Formspree | sendm8 | | --- | --- | | `https://formspree.io/f/{id}` | `https://sendm8.com/f/{id}`, or `https://sendm8.com/f/{your email}` with no account | | `_replyto` or `email`, `_subject`, `_next`, `_gotcha`, `_cc` | The same. `_next` must be on one of the form’s allowed domains, and `_cc` only copies addresses verified in your account. | | Other underscore fields | Ignored and not stored. | | JSON success: `{ ok: true }` | `{ ok: true, id }` | | JSON errors: an `errors` array | `{ ok: false, error: { code, message } }` with a matching HTTP status, plus the same `errors` array when a field is at fault. [AJAX / fetch](https://sendm8.com/docs/ajax/). | | `@formspree/react` (`useForm`, `ValidationError`) | [`@sendm8/react`](https://www.npmjs.com/package/@sendm8/react), with the same API. Change the import and the form id. | | `@formspree/ajax` and `data-fs-*` attributes | The helper script and `data-sendm8` attributes. [AJAX without writing JavaScript](https://sendm8.com/docs/ajax-helper/). | #### React and JavaScript In a React app, swap `@formspree/react` for [`@sendm8/react`](https://www.npmjs.com/package/@sendm8/react). It has the same`useForm` and `ValidationError`, so the import and the form id are the only changes. Field errors work the same, and every failure also comes with one error for the whole form (some, like the monthly limit, aren’t about a field), so keep a `` without a `field` somewhere in the form too. **React: `ContactForm.jsx`** ```jsx import { useForm, ValidationError } from "@sendm8/react"; // was "@formspree/react" export function ContactForm() { const [state, handleSubmit] = useForm("k3x9q2m7ab"); // was useForm("xyzabcde") if (state.succeeded) return

Thanks! It's on its way.

; return (