Menu

Static site contact form: Netlify, Vercel, Cloudflare Pages
πŸ“°

Static site contact form: Netlify, Vercel, Cloudflare Pages

DEV Community: htmlΒ·Harsimran jeet SinghΒ·about 6 hours ago
#gfyzN9Gv
#devto2#devto#dev#form#netlify
Long article (865 words) β€” no AI summary yet.
Reading 0:00
15s threshold

A static site has no server of its own to receive a form. On Netlify, Vercel and Cloudflare Pages you have three ways to handle one:

Option Trade-off

Your host's form feature Netlify has one (Netlify Forms). Vercel and Cloudflare Pages don't.

A serverless function Netlify Functions, Vercel Functions or Pages Functions. Full control, but you build email delivery, spam filtering and storage yourself.

A form backend Keep your own HTML. The backend receives the POST, filters spam and emails you. It works the same on any host.

This guide uses a form backend, Formkove, which has a free plan with 300 submissions a month. The HTML is the same on all three hosts; the differences are in step 2. On GitHub Pages or Jekyll? Follow How to add a contact form to GitHub Pages instead.

1. Create a form

Sign up free , click New form , and copy the endpoint URL:

https://app.formkove.com/api/forms/YOUR_FORM_ID/submissions

Enter fullscreen mode

Exit fullscreen mode

Submissions go to your account email by default.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.