<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Long N. on Medium]]></title>
        <description><![CDATA[Stories by Long N. on Medium]]></description>
        <link>https://medium.com/@formtorch?source=rss-a9b434f73db0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*e2zk8hS3Bq14zGAQt2RFhw.png</url>
            <title>Stories by Long N. on Medium</title>
            <link>https://medium.com/@formtorch?source=rss-a9b434f73db0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 26 Nov 2026 01:44:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@formtorch/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[How to Add a Contact Form to a Static Website Without a Backend (2026) — Formtorch Blog]]></title>
            <link>https://medium.com/@formtorch/how-to-add-a-contact-form-to-a-static-website-without-a-backend-2026-formtorch-blog-f76f0ac4bdb0?source=rss-a9b434f73db0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f76f0ac4bdb0</guid>
            <category><![CDATA[contact-form]]></category>
            <category><![CDATA[static-site]]></category>
            <category><![CDATA[formtorch]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Long N.]]></dc:creator>
            <pubDate>Sat, 18 Apr 2026 00:00:59 GMT</pubDate>
            <atom:updated>2026-07-04T13:56:00.763Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8hG9aAPMr3RQB34a.jpg" /></figure><p>You deployed a static site: a portfolio, a landing page, maybe a small product site. It’s on GitHub Pages, Netlify, Cloudflare Pages, or just a folder of HTML files. Fast, cheap, no server to maintain. Then someone asks: “Does the site have a contact form?”</p><p>That question is harder to answer than it seems. Static files served from a CDN have no ability to receive, process, or store form submissions. The action attribute on your &lt;form&gt; tag has to point to something that actually runs code. Your CDN doesn&#39;t do that.</p><p>This post covers how to add a working, spam-filtered contact form to any static site, without writing backend code. Two approaches: a plain HTML form that requires zero JavaScript, and a vanilla JS version with loading and success states, also with no framework and no build step.</p><h3>Why your static host can’t process form submissions</h3><p>When someone submits a form, the browser sends a POST request to whichever URL is in your form’s action attribute. Something at that URL has to receive the request, parse the fields, store the data, and send you an email. That&#39;s server-side work.</p><p>A CDN serving static files isn’t running code. It serves whatever file matches the URL path. A POST to a static host typically returns a 405 Method Not Allowed or just gets ignored.</p><p>Curious about the fuller picture of what “handling a form” actually involves at the server level? <a href="https://formtorch.com/blog/hidden-complexity-of-form-handling">The hidden complexity of form handling</a> walks through what’s under the hood.</p><p>The solution is to point your form at an endpoint that does handle submissions. That endpoint lives somewhere else — not on your static host.</p><h3>Your options</h3><p>For a static site, option 3 is almost always the right answer. You keep the benefits of static hosting (fast, cheap, no ops) and outsource the form-handling work to a service that specializes in it. This guide uses <a href="https://formtorch.com">Formtorch</a>.</p><p>If you want to understand why building your own form backend costs more than it looks, <a href="https://formtorch.com/blog/static-sites-need-a-backend">Why static sites still need a backend for forms</a> covers that reasoning in depth.</p><h3>The simplest version: plain HTML</h3><p>This approach requires zero JavaScript and works on any host that can serve an HTML file. GitHub Pages, Hugo, Jekyll, Eleventy, a Cloudflare Pages deployment, a hand-edited index.html - all of them work.</p><p>When someone submits this form, the browser does a standard POST to Formtorch’s servers. Formtorch stores the submission, runs spam checks, and sends you an email notification. Then it redirects to whatever URL you put in _redirect.</p><p>If you leave out _redirect, Formtorch shows its default thank-you page. Either way, your static host is never involved in the submission at all - the browser is talking directly to Formtorch&#39;s endpoint.</p><p>For a detailed look at HTML form mechanics and the full list of supported fields, see <a href="https://formtorch.com/blog/html-contact-form-send-email">HTML contact forms that send email: a complete guide</a>.</p><h3>Better UX with vanilla JavaScript</h3><p>The plain HTML version works, but it causes a full page navigation on submit. If you want to stay on the page, show a spinner, and swap in a success message without a redirect, you need a small amount of JavaScript.</p><p>The following example uses no framework, no npm packages, and no build step. It runs in any modern browser. Paste it into a plain .html file, a Hugo partial, a Jekyll _includes file, or an Eleventy template.</p><p>A few things worth explaining here:</p><p><strong>e.preventDefault()</strong>: stops the browser from doing its default form submission (the full-page navigation). You&#39;re taking over from here.</p><p><strong>FormData(form)</strong>: constructs the submission payload directly from the form element. You don&#39;t have to manually read each input - add or rename a field in the HTML and it just works, no JavaScript changes needed.</p><p><strong>X-Requested-With: XMLHttpRequest</strong>: this header tells Formtorch that the request came from JavaScript, not a browser form submission. Without it, Formtorch responds with an HTML redirect instead of JSON, which isn&#39;t useful in a fetch handler.</p><p><strong>hidden attribute toggle</strong>: instead of showing/hiding with CSS classes, toggling the hidden attribute is cleaner for semantic HTML. The success message starts hidden and the form hides when submission succeeds.</p><p><strong>Re-enabling the button on error</strong>: if submission fails, the button goes back to its original state so the user can try again.</p><h3>Does this work on your host?</h3><p>Short answer: yes, on all of them. Here’s why.</p><p><strong>GitHub Pages</strong>: GitHub Pages serves static files. Your form submits to formtorch.com, which is an entirely different server. GitHub Pages never sees the POST request. It just serves the HTML file that contains the form.</p><p><strong>Netlify</strong>: Netlify has its own built-in form handling, but it requires Netlify-specific attributes ( netlify or data-netlify=&quot;true&quot; on the form tag) and ties you to Netlify&#39;s submission processing. Formtorch works without any Netlify-specific configuration, and it&#39;s host-agnostic - if you ever move off Netlify, your form still works.</p><p><strong>Cloudflare Pages</strong>: same as GitHub Pages and Netlify. The form renders from Cloudflare’s edge, but the submission goes to Formtorch. Cloudflare Pages is not involved.</p><p><strong>Vercel static export</strong>: if you’re using output: &#39;export&#39; in Next.js, your site deploys as static files. The same HTML form or fetch approach works without modification.</p><p><strong>Hugo</strong>: paste the form HTML into a layout or partial file. Hugo outputs static HTML, so the runtime behavior is identical to a hand-authored HTML file.</p><p><strong>Jekyll</strong>: same. Put the form in a _includes file or directly in a layout. The Liquid template engine processes it at build time and outputs plain HTML.</p><p><strong>Eleventy</strong>: same. Add it to a Nunjucks, Liquid, or Handlebars template. The output is static HTML.</p><h3>Spam protection</h3><p>Formtorch runs TorchWarden on every submission by default. It scores each submission against a set of spam signals: hidden field filling (classic bot behavior), rapid-fire duplicate submissions, and pattern matching. Spam is stored separately in your dashboard and excluded from notifications. You don’t configure anything.</p><p>If you’re building a custom backend instead, a honeypot field is the most practical first line of defense. It’s a hidden input that real users never interact with, but bots usually fill in:</p><p>For a deeper look at the spam landscape and which defenses hold up over time, see <a href="https://formtorch.com/blog/prevent-spam-contact-forms">How to prevent spam in contact forms</a>.</p><h3>Wrapping up</h3><ul><li>Plain HTML form: zero JavaScript, works anywhere that can serve an HTML file</li><li>Vanilla JS fetch: loading and success states with no framework or build step</li><li>Compatible with any static host: GitHub Pages, Netlify, Cloudflare Pages, Vercel static export, Hugo, Jekyll, Eleventy</li><li>Spam filtering included with no configuration</li></ul><p>You don’t need a backend, a serverless function, or a hosting platform with built-in form support. A static HTML file and a form endpoint is enough.</p><p><em>Originally published at </em><a href="https://formtorch.com/blog/contact-form-static-website"><em>https://formtorch.com</em></a><em> on April 18, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f76f0ac4bdb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Best Form Backend Services for Developers in 2026 (Ranked) — Formtorch Blog]]></title>
            <link>https://medium.com/@formtorch/the-best-form-backend-services-for-developers-in-2026-ranked-formtorch-blog-eb7288a5544e?source=rss-a9b434f73db0------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb7288a5544e</guid>
            <category><![CDATA[contact-form]]></category>
            <category><![CDATA[formtorch]]></category>
            <category><![CDATA[netlify]]></category>
            <category><![CDATA[formspree]]></category>
            <dc:creator><![CDATA[Long N.]]></dc:creator>
            <pubDate>Sat, 11 Apr 2026 00:00:24 GMT</pubDate>
            <atom:updated>2026-06-30T18:36:57.739Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jAnOmvMuFcJMnd4x.jpg" /></figure><p>You have seven browser tabs open. Each one is a form backend landing page. Every service claims to be “the simplest” and “developer-friendly.” Most look nearly identical until you get into the details, and that’s exactly where the differences that matter live.</p><p>Free tier limits. Whether spam counts against your quota. What the dashboard actually looks like after you’ve integrated and you’re triaging real submissions. These aren’t things you can figure out from a pricing table comparison at a glance.</p><p>This post does that evaluation work so you don’t have to. Seven services, four dimensions, honest rankings.</p><p>If you want context on why this decision matters more than it looks, <a href="https://formtorch.com/blog/hidden-complexity-of-form-handling">The hidden complexity of form handling</a> explains what’s actually happening under the hood once a form goes live.</p><h3>How these were evaluated</h3><p>Every service was evaluated across the same four dimensions:</p><p><strong>Free tier value</strong>: how many submissions per month, how many forms, and what features are included without paying.</p><p><strong>Spam protection</strong>: what runs on which plan, and critically, whether spam submissions eat into your quota.</p><p><strong>Developer experience</strong>: dashboard quality, submission search and export, setup time, and how the integration actually feels day-to-day.</p><p><strong>Paid plan value</strong>: price per tier, what unlocks at each level, and whether the jump from free to paid is reasonable.</p><p>Pricing for competitor services was accurate at the time of writing but changes. Verify directly before making decisions.</p><h3>The ranked list</h3><h3>1. Formtorch: best overall in 2026</h3><p><a href="https://formtorch.com">Formtorch</a> is the newest service in this list, which is both a weakness (smaller integration ecosystem, less community documentation) and a strength: it was built knowing exactly what form backends got wrong over the past decade.</p><p><strong>Free plan:</strong> 150 submissions per month, pooled across all your forms. Unlimited forms. 30-day submission history. CSV and JSON export. Full-text submission search. TorchWarden spam scoring on every submission. Cloudflare Turnstile, hCaptcha, and reCAPTCHA v3 CAPTCHA support.</p><p><strong>Starter plan ($10/mo):</strong> 1,000 submissions per month. 1-year history. File uploads with 1 GB storage. Webhooks and REST API access. Zapier and Google Sheets integrations. Up to 3 verified email recipients per form.</p><p><strong>Pro plan ($20/mo):</strong> 5,000 submissions per month. Unlimited history. 5 GB file storage. Conditional routing rules. Autoresponder emails. Make and n8n integrations. Slack and Discord notifications. Up to 5 recipients. Priority support.</p><ul><li>Spam protection on all plans, including free, with TorchWarden scoring</li><li>Spam submissions never count against your monthly quota</li><li>Submission search and CSV/JSON export on the free plan</li><li>Inline spam scores visible in the submissions list (no separate spam inbox)</li><li>Modern dashboard built for the way developers work in 2025</li><li>150 submissions pooled across unlimited forms (more practical than per-form limits)</li></ul><p>The cons worth naming: Formtorch is newer, so there’s less community documentation, fewer tutorials, and a smaller integration ecosystem than Formspree. If you need a very specific integration that isn’t on the list, check carefully before committing.</p><h3>2. Web3Forms: best for zero-dashboard simplicity</h3><p>Web3Forms takes the opposite approach from every other service in this list. There’s no dashboard to manage. You point your form at their endpoint, they forward submissions to your email, and that’s it.</p><p><strong>Free plan:</strong> 250 submissions per month across unlimited forms. No account required beyond an API key tied to your email.</p><p>The trade-off is exactly what it sounds like: no dashboard means no submission history, no spam triage, no search, no export. If a submission comes in and you don’t see the email, it’s gone. There’s no record to go back to.</p><p>This works well for a contact form on a portfolio or a simple feedback widget where the email is the whole point. It breaks down the moment you need any visibility into what’s actually coming through, whether that’s reviewing older submissions, filtering out bots, or exporting data.</p><p>If you’re building on a static site and you want the absolute minimum without thinking about it, Web3Forms is a legitimate choice. If you ever need to look at submissions after the fact, it isn’t.</p><h3>3. Formspree: most established, widest ecosystem</h3><p>Formspree has been running form backends since 2013. That longevity means the widest integration ecosystem of any service in this list, the most tutorials, and the most community documentation. If you Google how to do something with a form backend, Formspree is probably in the answer.</p><p><strong>Free plan:</strong> 50 submissions per form per month. Not pooled. Each form has its own 50-submission cap, and spam counts against that limit.</p><p><strong>Gold plan ($10/mo at time of writing):</strong> 1,000 submissions per month, reCAPTCHA integration, more integrations.</p><p><strong>Platinum plan ($40/mo at time of writing):</strong> Unlimited submissions.</p><p>The free tier structure is worth understanding carefully. 50 per form sounds workable until you have three forms. At that point you have 150 total submissions available, but they’re siloed. Your high-traffic contact form hits its cap while your low-traffic waitlist form still has room. Pooled limits are more practical.</p><p>Spam protection at the free tier is basic keyword filtering. reCAPTCHA is a paid add-on. The dashboard is functional but was designed in an earlier era and reflects that in its navigation patterns.</p><p>For a detailed head-to-head comparison, see <a href="https://formtorch.com/blog/formspree-vs-formtorch">Formspree vs Formtorch</a>.</p><h3>4. Basin: best for design-conscious developers</h3><p>Basin has the cleanest dashboard UI of the established alternatives. If you’re building something where aesthetics extend to your tooling choices, Basin is the one that looks the most intentional.</p><p><strong>Free plan:</strong> Approximately 100 submissions per month (verify current limits at time of signup). Clean form management UI.</p><p><strong>Paid plans:</strong> Starting around $9/mo at time of writing.</p><p>The feature set is narrower than Formspree or Formtorch. Spam protection is lighter. Integration depth is shallower. If dashboard aesthetics are a top-of-stack concern and submission volume is low, Basin is worth a look. If spam protection depth or integration breadth matter, look elsewhere.</p><h3>5. Formcarry: solid mid-tier, simple API</h3><p>Formcarry sits in the middle of this list for a reason: it’s a solid, unremarkable service. The API documentation is clear. Integration is straightforward. Nothing about it is surprising in either direction.</p><p><strong>Free plan:</strong> 100 submissions per month.</p><p><strong>Paid plans:</strong> Starting around $9/mo at time of writing.</p><p>The free tier is lower than Formtorch and Web3Forms. Spam protection is lighter. The dashboard is functional. If you’ve evaluated the top two options and have a specific reason neither works, Formcarry is a reasonable fallback.</p><h3>6. Getform: reliable but limited free tier</h3><p>Getform has been around long enough to have a reputation for solid uptime. The integrations are clean and the setup is quick.</p><p><strong>Free plan:</strong> 50 submissions per month, 1 form. That’s the most restrictive free tier in this list by a significant margin.</p><p><strong>Paid plans:</strong> Starting around $9/mo at time of writing, which unlocks more forms and higher submission limits.</p><p>The 1-form free plan is a real constraint. For any project with more than one contact point, you’re either paying or you’ve already hit the ceiling. For a quick prototype or a single-form personal site, it’s workable. For anything else, the paid plan math starts on day one.</p><h3>7. Netlify Forms: good only if you’re already on Netlify</h3><p>Netlify Forms is the one service in this list that isn’t a standalone product. It’s a feature baked into the Netlify platform. If you’re already deploying on Netlify, adding a form is zero config: drop a netlify attribute on your &lt;form&gt; element and it works.</p><p><strong>Free plan:</strong> 100 submissions per month across your Netlify sites.</p><p><strong>Paid access:</strong> Tied to Netlify Pro at around $19/mo at time of writing, which is a hosting plan, not a form backend plan.</p><p>If you’re not on Netlify, this service doesn’t exist for you. If you are on Netlify and you have one simple form, it’s convenient. The pricing gets complicated when your form needs outgrow what the free tier covers, because you’re buying into more of the Netlify platform to get more form capacity, not buying a form backend upgrade.</p><p>For anything beyond a single simple form, or for any project not on Netlify, a standalone service gives you more control and clearer pricing.</p><p>For more on why static sites eventually outgrow built-in form solutions, see <a href="https://formtorch.com/blog/static-sites-need-a-backend">Why static sites still need a backend</a>.</p><h3>Quick comparison</h3><p>Competitor pricing and feature availability marked “~” are at time of writing. Verify current details directly.</p><h3>How to choose</h3><p>The right service depends on what you’re optimizing for. Here’s the decision as clearly as possible:</p><p><strong>You want the most useful free tier with spam protection built in.</strong> Formtorch. 150 pooled submissions, spam that doesn’t eat your quota, search and export included free.</p><p><strong>You want the absolute simplest setup with no dashboard to manage.</strong> Web3Forms. Point your form at their endpoint, get emails, done. Nothing else.</p><p><strong>You’re already on Netlify and have a single form.</strong> Netlify Forms. Zero config and it just works in that specific context.</p><p><strong>You need the widest integration ecosystem and the most community documentation.</strong> Formspree. Ten years of tutorials and a larger integration library.</p><p><strong>You care about dashboard aesthetics and have low submission volume.</strong> Basin.</p><p>If you’re starting fresh with no existing commitment to any service, the real choice is between Formtorch and Web3Forms depending on one question: do you want a dashboard? If you need to review submissions later, triage spam, export data, or manage more than one form over time, you want Formtorch. If you want the endpoint to email you and nothing else, Web3Forms is simpler.</p><p>For a deeper look at what proper spam handling actually involves and why it matters on day one, see <a href="https://formtorch.com/blog/prevent-spam-contact-forms">How to prevent spam in contact forms</a>.</p><h3>The bottom line</h3><p>All seven services in this list work. None of them will fail you catastrophically. Your forms will receive submissions and you’ll get notified.</p><p>The meaningful differences are in what you get free, how spam is handled, and how much time you spend in the dashboard managing the side effects of running a public form. On those dimensions, the services in this list are not equal, and the gap between the top and bottom is real.</p><p>Start with what matters to your project right now. For most developers evaluating form backends in 2026 without an existing commitment, the case for Formtorch is straightforward: the free tier is more practical, spam protection ships on every plan, and the dashboard reflects how developers actually work today.</p><p><em>Originally published at </em><a href="https://formtorch.com/blog/best-form-backend-services-2026"><em>https://formtorch.com</em></a><em> on April 11, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb7288a5544e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Formspree vs Formtorch: An Honest Side-by-Side Comparison — Formtorch Blog]]></title>
            <link>https://medium.com/@formtorch/formspree-vs-formtorch-an-honest-side-by-side-comparison-formtorch-blog-d00490b32a30?source=rss-a9b434f73db0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d00490b32a30</guid>
            <category><![CDATA[contact-form]]></category>
            <category><![CDATA[static-site]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[formtorch]]></category>
            <category><![CDATA[formspree]]></category>
            <dc:creator><![CDATA[Long N.]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 00:00:12 GMT</pubDate>
            <atom:updated>2026-08-01T14:11:01.422Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*soOV--kU6Xx132oV.jpg" /></figure><p>You’re building a new site or moving an old one to a static host. You need a form backend for a contact form, a lead capture, a feedback widget. You Google “form backend” and Formspree shows up first. It has been there for a decade, everyone has heard of it, and the free plan sounds fine on paper.</p><p>But before you default to the familiar name, it’s worth taking a closer look at what you actually get. Formspree and <a href="https://formtorch.com">Formtorch</a> are solving the same problem, but they were built in different eras with different ideas about what a developer-focused tool should feel like. This post walks through both, honestly, so you can make the right call.</p><h3>The short version</h3><p>If you just want the headline:</p><p><strong>Free tier:</strong> Formtorch gives you 150 submissions per month across all your forms. Formspree gives you 50 per form per month. For a single form, Formspree is comparable. For multiple forms, Formtorch’s pooled allowance is more practical.</p><p><strong>Spam protection:</strong> Formtorch runs multi-signal spam detection on every plan, including free. Formspree’s spam filtering is real, but reCAPTCHA integration is a paid feature. Critically, spam submissions on Formtorch don’t count against your quota.</p><p><strong>Dashboard UX:</strong> This one is harder to quantify, but it’s meaningful. Formspree’s interface works. Formtorch’s interface was built for 2025 developer workflows, with inline spam scores, clean submission views, and export on the free plan.</p><p>If those things matter to you, read on.</p><h3>Pricing and free tier</h3><p>The pricing at the entry level is similar. Both charge $10/mo for 1,000 submissions. Formspree’s Pro plan is double the price. Formtorch’s Pro is $20/mo for 5,000 submissions.</p><p>The free tier difference is worth understanding carefully. Formspree’s 50 submissions per form per month sounds okay if you have one form. Add three forms and you have 150 submissions spread across them individually, with no ability to pool. Formtorch’s 150 is shared across all your forms, which is usually more useful in practice: your high-traffic form uses most of it, and your low-traffic forms don’t each burn a separate quota slot.</p><h3>Spam protection</h3><p>This is the biggest functional difference between the two services, and it’s more significant than it might look on a feature comparison page.</p><p>Formspree offers spam filtering, but reCAPTCHA integration is a paid feature. On the free plan, you’re relying on basic keyword filtering. For low-traffic forms, that might be fine. But if you’re building something public-facing, you’ll want more.</p><p>Formtorch runs TorchWarden on every submission on every plan, including free. It’s a multi-signal scoring system: honeypot detection, submission timing, keyword patterns, duplicate detection, and rate limiting. No configuration required.</p><ul><li>Honeypot detection on all plans (native _honeypot field support)</li><li>Behavioral signals: submission speed and timing patterns</li><li>Keyword pattern matching across message content</li><li>Duplicate detection: same payload, same form, within a time window</li><li>Per-IP and per-form rate limiting with in-memory fallback</li></ul><p>The practical difference: on Formspree’s free plan, bot traffic is your problem to manage. On Formtorch’s free plan, spam is automatically flagged, stored in your dashboard with a visible score, and excluded from your quota.</p><p>For a deeper look at how spam detection actually works and which techniques hold up, see <a href="https://formtorch.com/blog/prevent-spam-contact-forms">How to prevent spam in contact forms</a> and <a href="https://formtorch.com/blog/why-contact-forms-get-spam">Why contact forms get spam</a>.</p><h3>Dashboard and developer experience</h3><p>Formspree has been around since 2013. It works well. The dashboard is functional. But it was designed in an era where SaaS dashboards were dense tables with many-option dropdowns, and it still feels that way. Navigating to a specific form, finding a submission, reviewing spam, or exporting data requires more clicks and page navigation than it should.</p><p>Formtorch was designed in 2025 with a clearer idea of what a developer actually does when they open their form backend: they want to see recent submissions at a glance, triage anything that looks like spam without leaving the list, export what they need, and move on. The dashboard reflects that.</p><p>A few specific things that are different:</p><p><strong>Spam triage.</strong> In Formtorch, every submission shows its spam score inline in the submissions list. You can see at a glance why something was flagged, what signals fired, and how confident the scoring was. You don’t have to navigate to a separate spam inbox.</p><p><strong>CSV export on the free plan.</strong> Formtorch includes CSV and JSON export on all plans. Formspree restricts export to paid tiers. If you’re on the free plan and just want to pull your submissions into a spreadsheet, that’s a real difference.</p><p><strong>Submission search.</strong> Formtorch includes submission search on all plans. Formspree’s search is available, but the free plan has limitations.</p><p>None of this means Formspree is broken. For developers who used it in 2018 and are used to the interface, it’s fine. But if you’re evaluating both from scratch today, the UX difference is noticeable. Formtorch was built for the way developers work now, not ten years ago.</p><h3>Webhooks, API, and integrations</h3><p>Both services are broadly similar here. Webhooks and API access require a paid plan on both. Email notifications, custom redirects, and AJAX submissions work on the free tier for both.</p><p>The meaningful differences: file uploads are available on Formtorch’s Starter plan ($10/mo, 1 GB storage). Formspree restricts file uploads to paid tiers as well, but the specifics of storage limits differ. Multiple notification recipients are a Starter feature on Formtorch (with email verification per recipient); Formspree has similar gating.</p><p>Neither service has dramatically more or fewer integrations at equivalent price points. If webhooks are your primary integration path, both will get you there.</p><h3>When Formspree makes sense</h3><p>Being honest about this matters, because the answer isn’t “never.”</p><p><strong>You have an existing Formspree integration that works.</strong> If you built something in 2019 and it’s still running fine, there’s no reason to migrate. Switching form backends is real work.</p><p><strong>You need a specific Formspree feature.</strong> Formspree has been around longer and has features that Formtorch doesn’t have yet. If something specific in Formspree’s feature set is a hard requirement, check carefully before assuming Formtorch has it.</p><p><strong>Your team already knows Formspree.</strong> Onboarding friction is real. If your whole team is already familiar with the Formspree workflow, that familiarity has value.</p><p><strong>You need Formspree’s compliance certifications.</strong> Formspree has pursued certain enterprise compliance certifications over the years. If your use case requires specific certifications, verify what each service actually offers before deciding.</p><h3>When Formtorch makes sense</h3><ul><li>You’re starting a new project and want modern tooling from day one</li><li>You have more than one or two forms and want a pooled free tier</li><li>Spam protection matters and you don’t want to pay for it</li><li>You want to export submissions without upgrading</li><li>You want to see spam scores and submission details without navigating multiple pages</li><li>You’re building on React, Next.js, Astro, or another modern framework</li><li>You want a form backend that was designed for how developers work today</li></ul><p>If you’re evaluating form backends fresh, without an existing commitment to either service, Formtorch’s free tier is more practical, the spam protection is more complete at every price point, and the dashboard reflects a decade of lessons about what developers actually need.</p><h3>The honest take</h3><p>Formspree is a legitimate product. It’s been running production form backends for thousands of sites for over a decade. If you’re already using it, there’s no compelling reason to rip it out.</p><p>But if you’re evaluating from scratch, the comparison isn’t especially close. Formtorch’s free tier is more useful for multi-form projects. Spam protection that actually works ships on every plan, not as a paid upgrade. The quota doesn’t get eaten by bots. The dashboard was built for 2025, not 2015.</p><p>The fact that Formspree exists and is established doesn’t mean it’s the best default. It just means it got there first.</p><p><em>Originally published at </em><a href="https://formtorch.com/blog/formspree-vs-formtorch"><em>https://formtorch.com</em></a><em> on April 4, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d00490b32a30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a contact form in Astro — Formtorch Blog]]></title>
            <link>https://medium.com/@formtorch/how-to-build-a-contact-form-in-astro-formtorch-blog-4b98a632cb0a?source=rss-a9b434f73db0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b98a632cb0a</guid>
            <category><![CDATA[astrojs]]></category>
            <category><![CDATA[contact-form]]></category>
            <category><![CDATA[astros]]></category>
            <category><![CDATA[formtorch]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Long N.]]></dc:creator>
            <pubDate>Sun, 29 Mar 2026 00:00:22 GMT</pubDate>
            <atom:updated>2026-07-11T15:46:00.806Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TgWfobyASP67dy4q.jpg" /></figure><p>You have an Astro site. It’s fast, mostly static, and does exactly what you need. Then someone asks: “Does the site have a contact form?”</p><p>The static-first nature of Astro makes this a real question. You can’t drop a server action in and call it done the way you might in Next.js. Astro’s default output is HTML. There’s no built-in route handler sitting behind every page. So what do you actually do?</p><p>Three paths. One that’s almost always right for static sites. Here’s all of them.</p><h3>The options</h3><p><strong>1. An SSR API route</strong></p><p>Astro supports API routes (.ts files in src/pages/api/) when you set output: &#39;server&#39; or output: &#39;hybrid&#39; in your config and add a hosting adapter. You write the POST handler, receive the form data, and then still need to wire up email sending (Resend, SendGrid, Nodemailer) and spam protection yourself. It works, but it&#39;s significant infrastructure for a contact form.</p><p><strong>2. Astro Actions</strong></p><p>Introduced in Astro 5, Actions give you typed server functions callable from the client. They’re elegant. They also require an SSR adapter and a server runtime. And after you’ve set all that up, you still need to handle email delivery yourself.</p><p><strong>3. A form backend service</strong></p><p>You point your form at a hosted endpoint. The service stores submissions, filters spam, and forwards them to your email. No backend to write or maintain. For static Astro sites, this is almost always the right call.</p><p>This guide covers option 3, using <a href="https://formtorch.com">Formtorch</a> as the endpoint. The HTML and fetch patterns work with any form backend service.</p><h3>The simplest version: plain HTML in an .astro file</h3><p>Astro components are .astro files. They compile to static HTML. A plain &lt;form&gt; with an action attribute works with zero JavaScript:</p><p>The browser handles the POST natively. Formtorch redirects to a default thank-you page. If you want to send the user to your own page after submission, add a hidden _redirect field:</p><p>For many sites, this is enough. The contact form works, submissions arrive in your inbox, and you shipped no JavaScript. If you need loading states or want to keep the user on the page, read on.</p><h3>Adding interactivity with a &lt;script&gt; tag</h3><p>Astro has a first-class way to add client-side behavior without pulling in a framework: the &lt;script&gt; tag inside an .astro file. Unlike a raw &lt;script&gt; in plain HTML, Astro processes and bundles this. It gets deduped across component instances (safe to include in a reusable component), tree-shaken, and optimized with your build.</p><p>There’s no &quot;use client&quot; directive here. That&#39;s a Next.js concept. In Astro, the &lt;script&gt; block is how you say &quot;this code runs in the browser.&quot;</p><p>Here’s a complete contact form with loading, success, and error states:</p><p>A few things worth noting:</p><p><strong>X-Requested-With: XMLHttpRequest</strong>: this header tells Formtorch to respond with JSON instead of an HTML redirect. Without it, a 200 still works but you&#39;d get HTML back, which isn&#39;t useful inside a fetch handler.</p><p><strong>FormData</strong>: works with any input type, including file uploads, and you don&#39;t need to manually list every field name. Add a field later and the submission still works without touching the fetch code.</p><p><strong>The script block is TypeScript-aware</strong>: Astro processes the script, so the &lt;HTMLFormElement&gt; generics work if your project has TypeScript configured. The non-null assertions (!) are safe here because these elements are always present in the same component.</p><h3>Keeping the endpoint in an env variable</h3><p>Hardcoding the Formtorch URL is fine for a quick prototype. If you’re committing this to git, you’ll want the form ID in an environment variable instead.</p><p>Astro 6 ships astro:env, a type-safe environment variable system introduced as stable in Astro 5. You define your schema in astro.config.mjs, and Astro validates variables at build time and provides typed imports.</p><p>Define the schema in your Astro config:</p><p>Create a .env file at your project root:</p><p>Then import it in your script block:</p><p>The context: &#39;client&#39; and access: &#39;public&#39; settings tell Astro that this variable is safe to bundle into client JavaScript. If you&#39;re on an older Astro setup without astro:env, use import.meta.env.PUBLIC_FORM_ENDPOINT instead. The PUBLIC_ prefix is what tells Astro to expose the variable to the browser; variables without it are stripped out of the client bundle entirely.</p><p>Add .env to your .gitignore and commit a .env.example with the variable name but not the value, so collaborators know what to configure.</p><h3>Using a React island</h3><p>If your project already has @astrojs/react installed, you can drop in the same ContactForm.tsx component from the <a href="https://formtorch.com/blog/contact-form-react">React contact form guide</a> with one addition: the client:load directive.</p><p>The client:load directive tells Astro to hydrate this component in the browser immediately on page load. Without it, the React component renders to static HTML at build time and stays inert. Other options: client:idle (hydrates when the browser is idle) and client:visible (hydrates when the component scrolls into view, which is useful for forms below the fold).</p><p>The React component itself is unchanged from the standalone React version. It uses useState, fetch, and FormData. Astro handles bundling React only for the components that use it.</p><p>Do not add &quot;use client&quot; to React components used in Astro. That directive is specific to Next.js and has no effect here. The client:load directive on the component usage is how Astro controls hydration.</p><h3>Where to get your form ID</h3><p>You’ll need a Formtorch account and a form created in the dashboard. The endpoint appears immediately when you create the form.</p><h3>What about spam?</h3><p>Formtorch runs TorchWarden on every submission. It checks for common spam signals (bots filling hidden fields, rapid-fire identical submissions, keyword patterns) without adding friction for real users. Nothing to configure; it’s on by default.</p><p>If you’re building a custom backend, a honeypot field is the most practical starting point: a hidden input that real users never fill, but bots usually do.</p><p>For a full breakdown of what makes forms attractive to bots and which defenses hold up, see <a href="https://formtorch.com/blog/prevent-spam-contact-forms">How to prevent spam in contact forms</a>.</p><h3>Wrapping up</h3><p>The three paths covered:</p><ul><li><strong>Plain HTML form</strong>: zero JavaScript, browser handles the POST, Formtorch redirects to a thank-you page. Works on any static Astro site.</li><li><strong>Astro </strong><strong>&lt;script&gt; block</strong>: client-side interactivity without a framework, processed and bundled by Astro, no &quot;use client&quot; needed.</li><li><strong>React island</strong>: drop in your existing ContactForm.tsx with client:load, Astro bundles React only for the components that need it.</li></ul><p>Env variables go in astro:env (Astro 5+) with context: &#39;client&#39;, access: &#39;public&#39;, or in import.meta.env.PUBLIC_* for older setups. Either way, the PUBLIC_ part is what exposes the variable to the browser.</p><p>If you’re curious about what a form backend handles under the hood, <a href="https://formtorch.com/blog/hidden-complexity-of-form-handling">The hidden complexity of form handling</a> walks through everything that happens between a user clicking submit and an email landing in your inbox.</p><p><em>Originally published at </em><a href="https://formtorch.com/blog/contact-form-astro"><em>https://formtorch.com</em></a><em> on March 29, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b98a632cb0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best ways to secure a form endpoint — Formtorch Blog]]></title>
            <link>https://medium.com/@formtorch/best-ways-to-secure-a-form-endpoint-formtorch-blog-79cdc0be49ad?source=rss-a9b434f73db0------2</link>
            <guid isPermaLink="false">https://medium.com/p/79cdc0be49ad</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[formtorch]]></category>
            <category><![CDATA[form-endpoint]]></category>
            <category><![CDATA[contact-form]]></category>
            <dc:creator><![CDATA[Long N.]]></dc:creator>
            <pubDate>Wed, 21 Jan 2026 00:00:24 GMT</pubDate>
            <atom:updated>2026-07-25T15:06:01.523Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bQxgosnIzng6Qx_T.jpg" /></figure><p>A contact form looks harmless. It’s just a name, an email, and a message. But the endpoint that receives submissions is one of the most exposed surfaces on your site. It accepts arbitrary user input from the public internet, processes it, stores it, and triggers notifications. That’s a meaningful attack surface.</p><p>Security here isn’t about building a fortress. It’s about layering practical defenses that close the obvious gaps. Most vulnerabilities in form endpoints come from the same handful of mistakes, and most of them are straightforward to fix.</p><h3>HTTPS everywhere, no exceptions</h3><p>This one is table stakes and mostly solved by modern hosting, but worth stating clearly: your form’s action URL must use HTTPS.</p><p>A form submitted over HTTP sends all field data in plaintext. Anyone on the same network can read it. This matters especially for contact forms because they often collect email addresses and sometimes phone numbers or other personal details.</p><p>Redirect HTTP to HTTPS at the server or CDN level. Don’t give users the option to submit over HTTP. Most hosting platforms handle this by default, but verify it in your network tab the first time you test a form in production.</p><p>Client-side validation is good UX. It gives users immediate feedback without a round trip. But it provides zero security.</p><p>Anyone can submit a POST request directly to your endpoint, skipping your frontend entirely. With curl, you can hit any form endpoint in one line:</p><p>Server-side validation needs to re-check everything independently: required fields, valid email format, message length limits, allowed file types. Don’t assume the frontend did this correctly. Don’t assume the request came from your frontend at all.</p><p>Length limits matter more than they look. An endpoint that accepts arbitrarily long messages can be used to fill your storage with junk, slow down email delivery, or trigger resource exhaustion.</p><h3>Configure CORS intentionally</h3><p>CORS tells the browser which origins are allowed to make requests to your endpoint. If you don’t configure it, the browser’s default policy applies, and cross-origin requests from JavaScript (fetch, XMLHttpRequest) are blocked.</p><p>The trap: developers sometimes solve CORS errors by setting Access-Control-Allow-Origin: *, which allows requests from any origin. For a contact form endpoint, this is almost always wrong.</p><p>Note that CORS only restricts browser-based requests. It does not prevent direct API calls from servers, scripts, or tools like curl. CORS is a browser enforcement mechanism. It&#39;s useful for preventing other websites from using your endpoint in their pages, but it&#39;s not a substitute for authentication or rate limiting.</p><h3>Rate limit by IP</h3><p>Rate limiting caps how many requests a single source can make in a given window. It’s your primary defense against automated abuse, whether that’s a spam bot flooding your form or someone trying to enumerate valid emails.</p><p>The right limit depends on your form’s legitimate usage. A contact form on a personal site realistically sees one submission per person. Five per hour per IP is generous. Adjust based on your actual traffic patterns.</p><h3>Protect against spam and bot submissions</h3><p>Spam protection and security overlap significantly here. Bots that submit junk data are both a spam problem and an abuse problem, and the defenses are the same: honeypot fields, behavioral scoring, and duplicate detection.</p><p>The most important thing from a security standpoint is that spam defenses run server-side, not client-side. A JavaScript-only honeypot check can be bypassed by anyone who reads your source. The check has to happen in your handler before you accept the submission.</p><p>For a detailed breakdown of how spam attacks work and how to defend against them, see <a href="https://formtorch.com/blog/prevent-spam-contact-forms">How to prevent spam in contact forms</a> and <a href="https://formtorch.com/blog/why-contact-forms-get-spam">Why contact forms get spam</a>.</p><h3>Sanitize before storing and displaying</h3><p>When you store a form submission in a database and then display it in a dashboard, you have an XSS vector if you’re not careful. If a submission contains &lt;script&gt;alert(&#39;xss&#39;)&lt;/script&gt; and you render it with innerHTML or an unsafe template, that script runs for anyone who views the submission.</p><p>The fix is context-dependent:</p><p><strong>In the database</strong>: store raw input. Don’t sanitize before storing; you want to preserve the original submission and let your rendering layer handle safety.</p><p><strong>In HTML rendering</strong>: use your framework’s safe rendering methods. In React, {submission.message} is safe because JSX escapes by default. dangerouslySetInnerHTML is not safe with user input. In plain HTML templating, escape &lt;, &gt;, &amp;, &quot;, and &#39; before inserting user content.</p><p><strong>In email notifications</strong>: email HTML has its own rules. Most email sending libraries handle basic escaping, but double-check that user-submitted content is escaped before it goes into your email template.</p><p><strong>In a database query</strong>: use parameterized queries or an ORM that does this automatically. Never concatenate user input directly into SQL strings.</p><h3>Be careful with redirect parameters</h3><p>If your form endpoint accepts a _redirect parameter to send users to a custom success page, validate that the redirect target is a URL you actually own. An open redirect lets an attacker craft a URL like:</p><p>Someone who clicks a link to your domain ends up on a phishing site. Browsers show your domain in the URL before the redirect completes, which is enough to make the attack convincing.</p><p>If you’re using a form backend service, this is handled for you. If you’re building your own, validate redirect targets server-side before following them.</p><h3>Don’t leak information in error responses</h3><p>Error responses tell you what went wrong. They can also tell an attacker what to try next.</p><p>A response like {&quot;error&quot;: &quot;No user found with email user@example.com&quot;} confirms that email addresses are stored in your system. A response like {&quot;error&quot;: &quot;Database connection failed at host db.internal:5432&quot;} leaks your internal infrastructure details.</p><p>Keep error messages general to the outside world. Log the specific error server-side where you can review it, but return something generic to the client:</p><h3>Protect access to stored submissions</h3><p>If you have a dashboard that shows submission history, make sure it’s behind authentication. A public URL that lists every contact form submission is a significant data leak, especially if submissions include phone numbers, addresses, or other personal details.</p><p>This one is easy to overlook because the dashboard is “for internal use.” That’s precisely why it needs protection. An unauthenticated internal tool is an accidentally public one.</p><h3>The form backend option</h3><p>If you’re using a hosted form backend, most of this is handled at the platform level: HTTPS enforcement, rate limiting, spam filtering, open redirect protection, and secure storage are built in. The security posture you’d otherwise build and maintain yourself comes with the service.</p><p>That’s worth factoring into your build-vs-buy decision. Building a secure form endpoint is genuinely achievable, but it’s a real project. The complexity involved is mapped out in <a href="https://formtorch.com/blog/hidden-complexity-of-form-handling">The hidden complexity of handling form submissions</a>.</p><p><em>Originally published at </em><a href="https://formtorch.com/blog/secure-form-endpoints"><em>https://formtorch.com</em></a><em> on January 21, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79cdc0be49ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML contact form that sends email: a complete guide — Formtorch Blog]]></title>
            <link>https://medium.com/@formtorch/html-contact-form-that-sends-email-a-complete-guide-formtorch-blog-573e5b50f5bb?source=rss-a9b434f73db0------2</link>
            <guid isPermaLink="false">https://medium.com/p/573e5b50f5bb</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[contact-form]]></category>
            <category><![CDATA[formtorch]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Long N.]]></dc:creator>
            <pubDate>Tue, 16 Dec 2025 00:00:46 GMT</pubDate>
            <atom:updated>2026-07-18T15:06:01.930Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hIwM5-zHq86N04_d.jpg" /></figure><p>If you’ve ever written a contact form in HTML and expected it to send an email, you’ve probably run into a frustrating discovery: it doesn’t, not on its own.</p><p>HTML forms are just a way to package data and send it somewhere. The “sending email” part is always done by a server receiving that data and deciding what to do with it. That server might be PHP code you wrote, a Node.js function, or a hosted service, but something has to be on the other end.</p><p>This guide covers the whole picture: how HTML forms actually work, what your options are for the “server” part, and how to build a contact form that reliably delivers to your inbox.</p><h3>How HTML forms actually work</h3><p>When a user fills out a form and clicks submit, the browser collects all the field values and sends them to whichever URL is in the action attribute, using the HTTP method specified by method.</p><p>That’s it. The browser does a POST request to https://example.com/contact with email=user@example.com in the body. What happens next is entirely up to whatever is running at that URL.</p><p>If nothing is running at that URL, you get a 404. If what’s running there doesn’t send an email, no email gets sent. The HTML itself has no opinion about email.</p><h3>The mailto: trap</h3><p>You might have seen this:</p><p>This opens the visitor’s desktop email client with a draft pre-filled with the form data. It has a few problems:</p><ul><li>Most people browsing your site aren’t logged into a desktop email client</li><li>On mobile, it opens the mail app, often empty or broken</li><li>You have no record of what was submitted</li><li>It looks like a 1998 geocities site</li></ul><p>Don’t use mailto: for contact forms. It&#39;s not a solution; it&#39;s an accidental footgun that&#39;s survived for decades.</p><h3>What you actually need</h3><p>Something has to receive your form submission and send the email. Your options:</p><p>For most projects, including static sites, HTML pages, and simple websites, a form backend service is the right call. You point your form’s action at a hosted URL, and submissions are stored and emailed to you. No server to maintain, no email API to configure.</p><p>The rest of this guide uses <a href="https://formtorch.com">Formtorch</a> as the form backend, but the HTML patterns work with any similar service.</p><h3>Building the form</h3><p>Here’s a complete, accessible HTML contact form:</p><p>A few things to notice:</p><p><strong>label elements with matching </strong><strong>for/</strong><strong>id pairs</strong>: screen readers use these to describe inputs. They also make the label clickable, which expands the tap target on mobile. Always write them.</p><p><strong>type=&quot;email&quot; on the email field</strong>: the browser validates the format before submitting and shows a numeric keyboard on mobile.</p><p><strong>required attributes</strong>: the browser blocks submission if these fields are empty. It&#39;s not a substitute for server-side validation, but it catches honest mistakes immediately.</p><p><strong>autocomplete hints</strong>: these tell the browser (and password managers) what kind of data goes in each field, enabling autofill. autocomplete=&quot;name&quot; and autocomplete=&quot;email&quot; are the ones that matter here.</p><h3>Getting your form endpoint</h3><p>You need a Formtorch account and a form created in the dashboard.</p><h3>Redirecting after submission</h3><p>By default, Formtorch shows a generic success page after submission. You’ll almost certainly want to send people to your own page:</p><p>Fields with names starting with _ are metadata that control Formtorch&#39;s behavior. They&#39;re stripped from the submission before it&#39;s stored or emailed to you.</p><p>Your thank-you page can be as simple as a static HTML file with a “Thanks, we’ll be in touch.” message. It doesn’t need to do anything except exist and feel like a confirmation.</p><h3>Form HTML best practices</h3><p>A few more things that are easy to skip but worth doing:</p><p><strong>Use </strong><strong>&lt;label&gt; elements, not </strong><strong>placeholder as labels.</strong> Placeholder text disappears when you start typing. If you forget what a field is for halfway through, you have to clear it to find out. Labels stay visible.</p><p><strong>Group related fields with </strong><strong>&lt;fieldset&gt; and </strong><strong>&lt;legend&gt;.</strong> Not always necessary, but for forms with multiple sections (shipping vs. billing, for example), it helps screen readers group the context.</p><p><strong>Don’t disable the submit button after one click without visual feedback.</strong> If the network is slow, users will click again, assuming it didn’t register. Either disable with a spinner or change the button text to “Sending…”.</p><p><strong>Put </strong><strong>novalidate on the form if you&#39;re handling validation yourself in JavaScript.</strong> Without it, the browser&#39;s built-in validation and your JS validation will conflict.</p><h3>What about spam?</h3><p>Every publicly accessible contact form gets hit by spam. How quickly depends on how prominent your site is, but it happens to everyone eventually.</p><p>Formtorch runs spam detection automatically on every submission. Most spam never reaches your inbox. If you’re building a form with custom backend code, read <a href="https://formtorch.com/blog/prevent-spam-contact-forms">How to prevent spam in contact forms</a> for practical techniques.</p><h3>Testing your form</h3><p>Before shipping, test the full path:</p><ul><li>Fill in all required fields and submit. Do you land on your thank-you page?</li><li>Check your Formtorch dashboard. Does the submission appear?</li><li>Check your email. Did the notification arrive?</li><li>Try submitting with required fields empty. Does the browser block it?</li><li>Try submitting with an invalid email. Does the browser catch it?</li></ul><p>The dashboard test is worth doing separately from the email check. Sometimes notification emails end up in spam, and seeing the submission in the dashboard confirms the form is working even if the email got filtered.</p><h3>The full picture</h3><p>HTML forms are just a delivery mechanism. The action attribute is where you point them, and that URL is what actually handles submissions, stores them, and sends email.</p><p>The simplest path to a working contact form that sends email:</p><ol><li>Write a proper HTML form with labels, input types, and required attributes</li><li>Set action to your Formtorch endpoint URL</li><li>Add a _redirect field pointing to your thank-you page</li><li>Add a verified notification email in your form settings</li></ol><p>That’s a fully functional contact form. No server, no email API, no backend maintenance.</p><p><em>Originally published at </em><a href="https://formtorch.com/blog/html-contact-form-send-email"><em>https://formtorch.com</em></a><em> on December 16, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=573e5b50f5bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>