Skip to content

Contact form backend for any website: one URL, one email, three minutes

The solo-dev path. You have one form on one site and want an endpoint and an email. You meet exactly one new noun: Form.

Set up

Sign up, name the form, give the email to notify. You get a submit URL and snippets. Or let an agent do it with POST /v1/quickstart.

contact.html
<form action="https://postbag.dev/s/fm_8f3kq2" method="POST">
  <label>Email<input type="email" name="email" required /></label>
  <label>Message<textarea name="message" required></textarea></label>
  <input type="text" name="_gotcha" tabindex="-1" autocomplete="off" style="position:absolute;left:-10000px" aria-hidden="true" />
  <input type="hidden" name="_redirect" value="https://example.com/thanks" />
  <button type="submit">Send</button>
</form>

What you get

An email per submission with Reply-To set to the sender, so you answer from your mail client. An inbox in the dashboard with every message, including the ones the honeypot caught. A 303 back to your thank-you page for plain HTML, JSON for fetch. Nothing to maintain.

When it grows

Add Telegram for the phone. Add a webhook into your CRM. Put an origin allowlist on the form so only your site can post. Turn on Turnstile if the honeypot is not enough. None of this requires touching the HTML.

Questions, answered

Do I need JavaScript?
No. A plain HTML form works and redirects after submit. JavaScript is optional.
Will I get spam?
The honeypot and rate limit are on by default. Caught submissions are stored as spam and not emailed; you can review them.

Your first form is three minutes away.

Sign up, get a submit URL, point a form at it. The first submission lands in your inbox and your email. Everything else appears when you need it.