loc0w/formiz-nextjs-contact-form
À propos
Next.js contact form with no backend: submissions go to email & Telegram via Formiz. No API route, no SMTP.
Productivité et automatisationWhat you can do
- Email and Telegram notifications (WhatsApp coming soon)
- Spam protection: honeypot + rate limiting, optional domain allow list
- A tiny CRM: stages (New → Contacted → Proposal → Won/Lost), assignees, notes, CSV export
- Ask Claude about your submissions through the Formiz MCP connector
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalNext.js contact form with no backend (Formiz)
A working contact form for Next.js, with no API route, no server and no SMTP setup. Submissions are delivered to your email and Telegram by Formiz, and saved in a small built-in CRM.

Why
Static and serverless sites (Next.js on Vercel, Netlify, GitHub Pages…) have no mail server. The usual options are writing an API route, configuring SMTP, or paying for a heavy form tool. This example shows the simplest way: post the form to one URL.
Quick start
git clone https://github.com/loc0w/formiz-nextjs-contact-form
cd formiz-nextjs-contact-form
npm install
cp .env.example .env.local # paste your access key
npm run dev
- Create a free account at formiz.app and copy your project's access key.
- Put it in
.env.localasNEXT_PUBLIC_FORMIZ_KEY. - In the Formiz dashboard, add your email under Channels (and Telegram if you like).
- Submit the form at
http://localhost:3000. The message arrives in seconds.
How it works
The whole integration is one fetch call in app/ContactForm.jsx:
await fetch('https://api.formiz.app/submit', {
method: 'POST',
headers: { Accept: 'application/json' },
body: new FormData(form), // includes the hidden access_key field
});
Prefer plain HTML? This works too, with a redirect to a thank-you page:
<form action="https://api.formiz.app/submit" method="POST">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<input name="name" required>
<input name="email" type="email" required>
<textarea name="message"></textarea>
<button>Send</button>
</form>
Useful fields
| Field | What it does |
|---|---|
access_key |
Your Formiz project key (required) |
subject |
Subject line of the notification email |
redirect |
URL to send visitors to after a plain HTML submit |
_honey |
Honeypot checkbox; submissions with it filled are dropped as spam |
Any other field (name, email, message, phone, …) is delivered as is. If you have a field named email, Reply in the notification email goes straight to the visitor.
Features you get
- Email and Telegram notifications (WhatsApp coming soon)
- Spam protection: honeypot + rate limiting, optional domain allow list
- A tiny CRM: stages (New → Contacted → Proposal → Won/Lost), assignees, notes, CSV export
- Ask Claude about your submissions through the Formiz MCP connector
License
MIT. Use it in any project.
Explorer des projets similaires
Chargement…