Skip to content
Wrenform

Contact forms / Static sites

Contact form for a static website, without a backend

A static site has no server to receive a form. Wrenform is that server: point your form at it and every real message reaches your inbox.

The problem

A static website is a set of files: HTML, CSS, images. That's why it is fast, cheap and easy to host. But when a visitor sends a contact form, something has to receive the message, store it and email it to you, and a static host doesn't do that.

The usual fixes are an email link, which opens the visitor's email app and often fails, or a small server you write and protect from spam yourself. Wrenform replaces both: your form posts to our endpoint, and we do the rest.

The snippet

Replace YOUR_FORM_ID with the ID of your form.

<form action="https://wrenform.com/f/YOUR_FORM_ID" method="POST">
  <input type="text" name="name" required>
  <input type="email" name="email" required>
  <textarea name="message" required></textarea>
  <input type="text" name="_honey" style="display:none" tabindex="-1" autocomplete="off">
  <button type="submit">Send</button>
</form>
<!-- Optional: a timing check against bots, and data-ajax to submit in place -->
<script src="https://wrenform.com/js/v1/form.js" defer></script>

Steps

  1. Get an endpoint. Create a form (free) and copy its form ID. Using an AI tool? One prompt creates the form without an account.
  2. Set the action. Paste the form into your page and replace YOUR_FORM_ID. Keep every name and the hidden _honey field.
  3. Confirm and test. If you started from a prompt, click Confirm in the email from Wrenform. Then send a test from your live site.

What to expect

  • An email from Wrenform with the subject “Confirm your contact form on Wrenform” arrives within a few minutes. Not there? Check your spam folder.
  • Click Confirm within 7 days. Until then, messages are held, not emailed; once you confirm, they arrive at once. Unconfirmed forms are deleted after 7 days.
  • Asking your AI tool again within 24 hours returns the same form and doesn’t send a second email.

In plain English

Endpoint

The web address your form sends its data to: https://wrenform.com/f/YOUR_FORM_ID. It goes in the form's action.

Honeypot

A hidden field named _honey. People never see it, so only bots fill it in, and we drop those. Keep it in the form.

Allowed origins

The addresses of your site, such as https://example.com. Only forms on those addresses can post to your endpoint.

Static site

A site made of files only, with no server code: plain HTML, or built with Astro, Hugo, Jekyll, Eleventy and similar tools.

Spam handling

Spam filtering is on for every form, with no CAPTCHA: a hidden honeypot field, a timing check, rate limits per visitor, and a content score for links, keywords and gibberish. Spam goes to a separate tab and is never emailed. See how spam filtering works.

Deployment notes

  • Netlify. Deploy as usual. Netlify only processes forms that carry its own netlify or data-netlify attribute, so it leaves this form alone and the browser posts it to Wrenform. Add your netlify.app address and your custom domain to Allowed origins.
  • Vercel. Nothing to configure. The site build stays static; you don't need a serverless function for the form. Add your production domain to Allowed origins. Preview deployments get their own addresses, so leave the list empty while you test them, or add each one.
  • Cloudflare Pages. No Pages Function needed. Add your pages.dev address and your custom domain to Allowed origins. If you set a Content-Security-Policy header, add form-action https://wrenform.com.
  • GitHub Pages. GitHub Pages serves static files only, which is all this form needs. Add https://<user>.github.io (or your custom domain) to Allowed origins. The origin is the host only, without the repository path.

The thank-you page

After sending, the visitor lands on our hosted thank-you page, with a Back link to your site. To use your own page, set Redirect to in the form's settings, such as https://example.com/thanks: nothing changes in your HTML. A page per form? Add a hidden _redirect field instead. See redirects.

<input type="hidden" name="_redirect" value="https://example.com/thanks">

Copy this prompt for your AI

Building with Claude Code, Cursor, Lovable or another AI tool? Paste this prompt and replace YOUR_EMAIL. It creates a quick form with no account, adds it to your site and tells you what's left. More prompts: AI tools.

Add a contact form to this site using Wrenform (https://wrenform.com/llms.txt explains it).
1. Create the form with one request, no account needed:
   POST https://wrenform.com/api/v1/quick-forms
   Content-Type: application/json
   {"email": "YOUR_EMAIL", "siteUrl": "<the deployed https URL; omit it if not deployed yet>", "framework": "<html, react, nextjs, vue, svelte or astro>"}
   If you can't make HTTP requests, give me the exact curl command, I'll run it and paste the answer.
2. Put the returned snippet on a /contact page (or the contact section), in this site's style: a visible label for
   every field, type="email" on the email field, and the hidden _honey field kept exactly as it is.
3. Show a clear thank-you message after sending, and an error message if it fails.
4. No new dependencies, no API key, no server code: the endpoint is public by design.
5. Finally, tell me to check YOUR_EMAIL for an email from Wrenform and click Confirm. Messages are held until then.

Free tier limits

The Free plan includes 250 submissions a month, with email notifications and the dashboard. Spam doesn't count toward it. Paid plans add more submissions and webhooks; see pricing.

Guides for your framework

FAQ

Can a static website have a working contact form?
Yes. The form is plain HTML; only the place it posts to needs a server, and Wrenform is that server.
Do I need JavaScript?
No. A plain form with method POST works on its own. JavaScript is only needed if you want to stay on the page after sending.
Why not a mailto link?
A mailto link needs an email app set up on the visitor's device, and it shows your address to scrapers. A form works for everyone.

Next steps