Skip to content
FormToMail

Docs

Each form gets an endpoint like https://getformtomail.com/f/YOUR_FORM_ID. Create one on the home page; the activation email links to your private dashboard.

HTML form

Every input needs a name. Use method="POST".

html
<form action="https://getformtomail.com/f/YOUR_FORM_ID" method="POST">
  <input name="name" placeholder="Name" required>
  <input name="email" type="email" placeholder="Email" required>
  <textarea name="message" placeholder="Message" required></textarea>
  <input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">
  <button type="submit">Send</button>
</form>

JavaScript / JSON

Send FormData, URL-encoded or JSON. Add Accept: application/json to get JSON back instead of a redirect. CORS is open to every origin and preflight (OPTIONS) requests are answered.

js
const res = await fetch("https://getformtomail.com/f/YOUR_FORM_ID", {
  method: "POST",
  body: new FormData(form),            // or JSON.stringify({...}) with Content-Type: application/json
  headers: { Accept: "application/json" },
});
const { ok, error } = await res.json(); // { ok: true } on success

Special fields

  • _subject: subject line of the notification email.
  • _next: full URL to redirect to after a normal submit (overrides the dashboard setting).
  • _replyto: address used as Reply-To. Without it, a field named email (or containing "email") is used.
  • _gotcha (also _honey): honeypot. Hide it; if it has a value the submission is marked spam.
  • cf-turnstile-response: added by the Cloudflare Turnstile widget; verified when you set a Turnstile secret in the dashboard.

Fields starting with _ are not shown in the email. Fields with the same name (checkboxes) are joined with commas.

Responses

  • Normal form post: 303 redirect to _next, your thank-you URL, or our thank-you page.
  • JSON: {"ok":true,"message":"…"} on success; {"ok":false,"error":"…"} with status 400 (unreadable), 404 (unknown form), 413 (over 100 KB), 422 (empty), 429 (rate or monthly limit).
  • Spam gets the same success answer as real mail, so bots learn nothing. It's kept in your dashboard and not emailed.

Spam checks

  • Honeypot field, more than 3 links, the same submission again within an hour, and more than 15 submissions from one IP in 10 minutes.
  • Optional Cloudflare Turnstile (any plan).
  • AI check by a small language model (Pro).

Limits

  • Free: 250 submissions a month; Pro: 5,000. Counted per email address across all its forms, per calendar month (UTC). Spam doesn't count.
  • Up to 100 KB per submission, 60 fields, 10,000 characters per field.
  • File uploads are not supported yet; files are dropped and noted on the submission.
  • Email delivery uses a daily sending allowance. If it's reached, submissions stay in your dashboard as "Email pending" and are sent when sending resumes (after 00:00 UTC, on the next submission or dashboard visit).

Pro: Slack, Discord, webhooks, autoresponder

Set them in the dashboard. Webhooks receive { form: {id, name}, submission: {id, created_at, data} } with header X-FormToMail-Signature: sha256=<hex HMAC-SHA256 of the raw body>, keyed with the webhook secret shown in your dashboard. See the webhook guide.