FormDrop › Guides › Astro contact form without a backend

Astro contact form without a backend

Astro ships zero JS by default, which pairs perfectly with a plain HTML form posting to FormDrop.

src/pages/contact.astro

---
const key = import.meta.env.PUBLIC_FORMDROP_KEY;
---
<form action="https://forms.elimbi.com/submit" method="POST">
  <input type="hidden" name="access_key" value={key} />
  <input type="hidden" name="redirect" value={new URL("/thanks", Astro.site).href} />
  <input name="name" required />
  <input name="email" type="email" required />
  <textarea name="message" required></textarea>
  <input type="checkbox" name="botcheck" style="display:none" />
  <button>Send</button>
</form>

Set site in astro.config.mjs and create src/pages/thanks.astro. Works with fully static output.

Supported fields

Every other field is included in the email and saved in your dashboard log. Send Accept: application/json to get a JSON reply instead of a redirect.

Test it

  1. Create a free access key with your email.
  2. Paste the key, deploy, submit a test message.
  3. Check your inbox and the dashboard log. If mail is delayed, the submission is still stored in the log.

Point your form at one URL and get every message by email. Free for 250 submissions a month.

Get a free access key

FAQ

Is it free?

Yes: 250 submissions/month and unlimited forms on the free plan. Pro is $9/mo for 10,000/month.

Can I upload files?

Not currently — FormDrop handles text fields. Link to a file share instead.

Does it work with JavaScript disabled?

The plain HTML form version does; the fetch version needs JS.

Related guides

Vue contact form without a backendHugo contact form without a backendJekyll & GitHub Pages contact form without a backendEleventy (11ty) contact form without a backend