Skip to content
Guide

A form backend for a static site: HTML form to email, without a server

Point your own HTML form at a webhook URL, send visitors to your thank-you page, and get each submission by email or in a sheet. No server to host.

Updated

A static site has no server, so its contact form has nowhere to send its answers. The usual fix is a form backend: a service your form posts to, which emails you. Foliot can be that backend. Your own HTML form posts to a webhook URL, the visitor lands on your thank-you page, and a workflow emails you the answers, adds them to a sheet, or does anything else its steps can do. If you'd rather not keep your own form, the second option is Foliot's hosted form, embedded in your page.

  1. Trigger

    When a webhook is received

    Your HTML form posts here. Afterwards, visitors are sent to your thank-you page.
  2. Step 1

    Send email

    To you. Subject “New message from Trigger → Name”, reply-to Trigger → Email
The workflow you'll build. Your form posts to the trigger's URL.

Before you start

  • A Foliot account. The free plan is enough to build and test this.
  • A page on your site with a form, or the HTML below.
  • A thank-you page on your site to send people to after they submit.

Set it up

1. Create the workflow and copy the webhook URL

Create a new workflow and choose When a webhook is received. You get a URL like https://usefoliot.com/api/hooks/…. In the trigger, set Send people to this page afterwards to your thank-you page's full address. A successful form post is then answered with a redirect there, so visitors never see a raw response.

2. Point your form at it

<form action="https://usefoliot.com/api/hooks/YOUR-TOKEN" method="post">
  <label>Name <input name="name" required></label>
  <label>Email <input name="email" type="email" required></label>
  <label>Message <textarea name="message" required></textarea></label>
  <button>Send</button>
</form>

Keep the form's default encoding (regular form fields). Don't add enctype="multipart/form-data": Foliot reads form-encoded and JSON bodies, and there are no file uploads. Each field arrives under its name, so email becomes Trigger → Email.

3. Submit the form once

While the workflow is off, a submission runs nothing; it's saved as sample data so the next step can show real values. Open your page, click Get sample data in Foliot, and send the form once. (In the sample run you land on the thank-you page too.)

4. Email yourself

Click + after the trigger and choose Send email. To: your address (up to 10, comma-separated). Subject: “New message from Trigger → Name”. Message: Trigger → Message and anything else you want. Under More options, set Reply-to to Trigger → Email, so pressing Reply in your inbox answers the visitor. The email comes from a Foliot address; the sender name you choose shows as “Your site via Foliot”.

5. Test the step, then turn the workflow on

Test this step sends the email for real with the sample answers. When it looks right, switch the workflow on. Every submission is now a run you can open later, with the exact answers and the email that went out.

Useful variations

  • Keep a list: add Add row to Google Sheets, one column per field. See webhook to Google Sheets.
  • Confirm to the sender: a second Send email with To set to Trigger → Email; add a Delay and a third email to follow up days later.
  • Post it in Slack or Discord with Post to Slack or Post to Discord.
  • Submit with JavaScript instead: fetch() the URL with a JSON body and show your own message when the 202 comes back. The redirect applies to plain form posts only.

The other option: Foliot's hosted form on your page

If you'd rather not maintain the form, start the workflow with When a form is submitted instead. You build the fields in Foliot (short text, email, number, long text, dropdown, checkbox), then open Put this form on your website and paste the embed code into your page. This form validates answers, has a hidden honeypot field and a limit of 10 submissions a minute per visitor, shows your own thank-you message or sends people to a page of yours, and takes up to 100 submissions a day (1,000 on Pro). It keeps Foliot's look and a small “Powered by Foliot” line. See a form that emails you.

Good to know

  • Every submission is one run, however many steps: 500 runs a month on the free plan, 10,000 on Pro ($12 a month). Emails are limited to 25 recipients a day on the free plan and 100 on Pro.
  • Anyone with the webhook URL can post to it, and your page's HTML shows it. That's true of every form backend; the honeypot, the Filter and the rate limit are what keep the noise down. You can regenerate the URL from the trigger if it gets abused.
  • Bodies up to 256 KB. No file uploads.

Other ways to do it

  • Form backend services (Formspree, Getform and others) do this one job and often add file uploads and spam filtering. Pick one if that's all you need. Foliot fits when the form is the start of something: an email plus a sheet row, a Slack post, a delayed follow-up, or a call to your own API.
  • Your host's form handling, if it has one, keeps everything in one place.
  • A serverless function you write, which emails through a mail API. Most control, most to maintain.

Questions

How do I send an HTML form to email without a backend?

Point the form's action at a Foliot webhook URL and add a Send email step. The form posts its fields, Foliot redirects the visitor to your thank-you page and emails you the answers.

Where do visitors land after submitting?

On the page you set in the trigger's "Send people to this page afterwards". A plain form post gets a redirect there; a JavaScript fetch() gets a 202 and shows your own message.

Can the form upload files?

No. Foliot reads form-encoded and JSON bodies up to 256 KB; multipart uploads aren't supported.

Is it free?

The free plan includes 500 runs a month and 5 active workflows. Each submission is one run. Pro is $12 a month for 10,000 runs.