What we asked
People copy contact-form code from chat assistants. Whatever URL sits in that code decides where their visitors' messages go. We wanted to know which one it is, so on 1 November 2026 we asked:
- Add a contact form to my static HTML site that emails me the messages. Give me the code.
- My site is built with Astro and hosted on GitHub Pages. Make the contact form send submissions to my email.
- Write a React contact form component that actually sends the message to my inbox. I don't want to run my own backend.
- I built a landing page with Lovable. How do I make its contact form email me? Show the code.
- Next.js app on Vercel: what is the simplest way to get contact form submissions by email? Code please.
- I want the messages from my website's contact form in Telegram. Code for a plain HTML form.
- My business is in Germany and I care about GDPR. Add a contact form to my static site that sends to my email and keeps the data in the EU.
- What's a free way to receive form submissions from a static site without writing a server? Show the code.
Each prompt went into a fresh chat with memory and personalisation off, twice per assistant, with no follow-up. ChatGPT, Claude and Gemini gave all 16 answers each. Perplexity, used signed out as planned, showed a sign-in wall after 6 answers, so it has 6. Copilot could not be measured: signed out it no longer offers a chat at all. That makes 54 answers from 4 assistants.
Where the code sends the form
Every answer that gave code made it actually send something. None of the primary solutions was a mailto: link, and none was a form with no sending code. Netlify Forms came up only as an alternative.
The form services split like this: Web3Forms 14 of 34, Formspree 11 of 34, FormSubmit 3, EmailJS 2, and Formward, Formpost, Formspark and FormWit once each. Each assistant leans its own way:
| Assistant | Answers | Form service | Server code | Most common service |
|---|---|---|---|---|
| ChatGPT | 16 | 9 | 6 | Formspree (3 of 9) |
| Claude | 16 | 9 | 6 | Web3Forms (7 of 9) |
| Gemini | 16 | 11 | 4 | Formspree (5 of 11) |
| Perplexity | 6 | 5 | 1 | Web3Forms (2 of 5) |
We had fixed the bar for a headline like “AI assistants default to X” before the run: X had to be in at least 40% of the form-service answers and lead on at least 3 assistants. Web3Forms clears the first part (14 of 34) but leads on only 2 of 4. So the honest headline is that there is no single default.
Ask twice, get a different backend
We asked every question twice in separate chats. For the 24 prompt-assistant pairs with both runs, the two answers used the same backend in 13 of 24, and at least the same kind of solution (a form service, or your own server) in 19 of 24. ChatGPT, asked for a static HTML form, chose Formspree once and FormSubmit the next time. Claude, asked for a free static-site option, chose Formspree once and a Google Apps Script the next time.
So when someone says “ChatGPT recommends X”, they are describing one chat, and the next chat may recommend something else.
Name a framework and you get server code
The plain prompts went almost entirely to form services: for the static HTML, Astro, React and “free, no server” questions, 26 of 27 answers used one. Naming a platform changed that:
- Next.js on Vercel: 6 of 7 answers wrote a Server Action or route handler that sends through Resend. You need a Resend account, a verified domain and an API key, but no form service.
- Telegram: 5 of 7 answers wrote a PHP script that calls the Bot API from your server. That needs PHP hosting, which a static site usually does not have.
- Lovable: ChatGPT wrote a Supabase Edge Function with Resend in both runs. Claude used Web3Forms in both. Gemini did one of each.
- GDPR / EU: the answers spread out: Formward, Formpost, Formspark, or PHP
mail()on your own host. In 2 of 6 the assistant asked where the site is hosted instead of answering.
Is the code safe to paste?
Mostly yes, and more often than we expected. When we tested contact forms on sites built with Lovable and Bolt, a large share showed “Message sent!” and sent nothing. The chat assistants did better. Of the 29 answers that submit with JavaScript, 28 showed the success message only after checking the response. The one exception posted to a Google Apps Script in no-cors mode, where the browser cannot read the result at all.
Where the code goes wrong:
- 1 of 54 put a Telegram bot token in the page's JavaScript, where any visitor can read it and post as your bot.
- 3 of 54 wrote server code that reports success even when the email call failed. The client checks the response, but the server always answers 200.
One of those three shows how a fake success happens without anyone meaning it to. The setup steps tell you to save the key as RESEND_API_KEY, but the code reads RESENT_API_KEY. The key comes back empty, Resend refuses the request, and the function still returns 200 with Resend's error inside. The visitor sees “sent”.
// Supabase Edge Function from one answer (Lovable prompt), shortened.
// The setup steps say: save the key as RESEND_API_KEY. The code reads another name:
const RESEND_API_KEY = Deno.env.get("RESENT_API_KEY");
const res = await fetch("https://api.resend.com/emails", {
method: "POST",
headers: { Authorization: `Bearer ${RESEND_API_KEY}` },
body: JSON.stringify({ from, to, subject, html }),
});
const data = await res.json();
// Resend's error comes back here with status 200, so the form says "sent".
return new Response(JSON.stringify(data), { status: 200 });The two-line fix
Pass the failure on. If the email API answers with an error, the function should answer with an error too, so the form can keep what the visitor typed and say that sending failed.
const res = await fetch("https://api.resend.com/emails", { /* … */ });
if (!res.ok) {
return new Response(JSON.stringify({ success: false }), { status: 502 });
}
return new Response(JSON.stringify({ success: true }), { status: 200 });Where Formgong is
We make Formgong, a form backend, so this question is not neutral for us. We registered the design, the prompts and the bars on 16 October, before running anything, and said we would publish whatever came out.
Formgong appeared in the code of 0 of 54 answers and was named in the text of 0 of 54. Perplexity listed formgong.com guides among its sources in 4 of its 6 answers, for Telegram, Lovable, GitHub Pages and Next.js, and then wrote code that posts to a different service.
If you want an assistant to use a particular form service, name it in the prompt. Ours is “post the form to https://formgong.com/submit with my access key”. The contact form generator also gives you the code ready to paste.
Check the code your assistant gave you
Four checks take a few minutes and catch every problem we saw in these 54 answers:
How we did it
- Pre-registration. Prompts, assistants, coding rules and the two headline bars were written on 16 October 2026, before any prompt was sent. On the run day we logged every change and its reason before looking at the answers: the run date, the product list, and how to code Google Apps Script and SDKs that throw on failure.
- Modes. ChatGPT: temporary chat, no personalisation, Free plan, default model. Claude: incognito chat, Opus 5.5 at medium effort. Gemini: temporary chat, “Auto”. Perplexity: signed out, in a browser with no logins.
- Coding. For each answer we coded the first complete solution that sends the form: where it posts, whether the success message depends on the response, and whether a secret is in the page. Two coders did this separately. One was a script; the other read shuffled answers without knowing which assistant wrote them. In the first pass they disagreed on 9 of 54 endpoints, more than our limit, so we clarified the rules and both coded everything again. In the second pass they disagreed on 3 of 54, and we resolved each case by reading the answer.
Limitations
- One day, one account per assistant, English prompts. Assistants change weekly, and as the repeat runs show, even the same day gives different answers.
- Perplexity has only 6 answers from one run, and Copilot is not measured. Its signed-out chat is gone, and we did not want an account's history in the results.
- ChatGPT ran on the Free plan, not Plus as planned, and the interface never named the model.
- Claude was made by Anthropic, whose model also helped run this study. Its answers were collected the same way as the others, in incognito chats, and coded by the same rules.
- We read the code; we did not deploy all 54 answers. “Sends” means the code has a sending path, not that an email arrived.
Did your assistant give you something we did not see here, or a form that broke after you pasted it? Write to us at support@formgong.com. We will repeat this in December and add new cases.
Frequently asked questions
Which form backend does ChatGPT recommend?
In our 16 ChatGPT answers (1 November 2026), the most common form service was Formspree, in 3 of 9 answers that used a service, followed by FormSubmit and EmailJS with 2 each. For Next.js and Lovable it wrote server code with Resend instead. Asking the same question twice often gave a different service.
Is AI-generated contact form code safe to use?
Mostly. 28 of 29 answers that submit with JavaScript checked the response before showing “sent”. Watch for two problems: a Telegram bot token or email-API key in browser code (1 of 54), and server code that returns success even when the email call failed (3 of 54).
Why did the assistant give me a different answer than last time?
Answers vary from chat to chat. In our test the same assistant, asked the same question in a new chat, used the same backend in only 13 of 24 cases.
How do I make the assistant use a specific form service?
Name it in the prompt, with the endpoint URL, for example: “post the form to https://formgong.com/submit with my access key, and show success only if the response says success”.
Sources and documentation
Official references for this guide: Resend API: Send email, MDN: fetch() and response.ok, Telegram Bot API, Next.js: Server Actions and Mutations. Formgong HTML form setup, where data is stored.
Related guides
- Lovable form submissions to email and Telegram
- HTML contact form without a backend: a working example
- How to send website form submissions to Telegram
- Contact form not sending email? Check where it stops
- Managing website leads in Telegram without a CRM
- Form backend for Lovable, Bolt, v0, Cursor
- Telegram bot for a contact form: build or skip?
- GDPR form backend: 7 checks before you choose
- Lovable form not sending email? 6 fixes
- Netlify Forms not working? React and Bolt fixes
- Stop contact form spam without a CAPTCHA
- GitHub Pages contact form: a working setup
- Mailto Form in HTML: Why It Fails and What to Use
- HTML form to Google Sheets: 2 free methods
- Webflow form submission limit: what to do at 50
- Turnstile vs reCAPTCHA vs hCaptcha for forms
- Contact Form 7 and Elementor forms to Telegram
- Squarespace contact form not sending email?
- Shopify contact form: where do messages go?
- Google Form to Telegram: free Apps Script way
- Wix contact form not sending email? Fixes
- EU / GDPR Formspree alternatives compared
- HTML form action attribute explained
- How do HTML forms work? The HTTP request
- Types of Injection Attacks on Web Forms (2026)
- Indirect Prompt Injection in MCP
- MCP Rug Pull Attack: Detect Tool Changes
- Form without a backend: 7 ways that work
- Thank-you page after form submission (HTML)
- Indirect Prompt Injection Examples (2023–2026)
- Indirect Prompt Injection via Email
- What Is Tool Poisoning in MCP?
- WordPress contact form without a plugin
- Send email from frontend JavaScript
- How to Prevent Indirect Prompt Injection
- Honeypot Form Field: How to Add One That Works
- Contact Form with File Upload (HTML, No PHP)
- Angular contact form without a backend
- Send form submissions to Slack or Discord without Zapier
- Verify a form webhook signature (HMAC-SHA256)
- Contact forms that send nothing: 793 AI-built sites tested
- v0 contact form that actually sends: 3 ways
- How we tested AI-built contact forms, and 12 bugs we hit
- Cloudflare vs Netlify free plan: hosting that never pauses
- EmailJS 412 “Gmail_API: Invalid grant”: reconnect Gmail
- Resend “You can only send testing emails”: verify a domain
- Supabase Edge Function blocked by CORS policy: 3 causes
- Formspree “Form not found” and other errors: fixes
- Web3Forms errors: “Invalid access key” and 403 explained
- How to add customer reviews to your website for free
- Getform not working? “This form has been deleted” and more
- Next.js contact form not working? 6 errors, reproduced
- Webflow form not sending email? What to check, tested
- FormSubmit not working? “This form needs Activation” fix
- Contact form “TypeError: Failed to fetch”: causes and fixes
- WooCommerce product enquiry form
- Contact Form 7 vs WPForms
- Gravity Forms alternative free
- WordPress contact form block
- 535-5.7.8 Username and Password not accepted (Gmail)
- 535 5.7.3 Authentication unsuccessful: Office 365 SMTP
- Nodemailer “Missing credentials for "PLAIN"”: the fix
- Nodemailer “Greeting never received”: port 465 fix
- Nodemailer SSL “wrong version number”: the port fix
- Nodemailer “self-signed certificate in certificate chain”
- Nodemailer ECONNREFUSED 127.0.0.1:587: missing SMTP host
- SendGrid “authorization grant is invalid”: 401 fix
- Mailgun 401 Forbidden: why the API rejects your key
- “Edge Function returned a non-2xx status code”: the fix
- Next.js “Body exceeded 1 MB limit”: Server Action fix
- Unexpected token '<', "<!DOCTYPE "... is not valid JSON
- “TypeError: Body is unusable”: body has already been read
- Turnstile “timeout-or-duplicate” and other siteverify errors
- Turnstile vs hCaptcha vs reCAPTCHA: speed and size tested
- Judge.me reviews not showing on Shopify: how to fix it
- Judge.me review carousel not showing: how to fix it
- Yotpo reviews not showing on Shopify? Check the app embed
- Loox reviews not showing on product page: how to fix
- Shopify reviews not showing: what to check first
- How to show reviews on Shopify
- GDPR for website forms: what each type of form needs
- WooCommerce reviews not showing: how to fix it
- Stamped.io reviews not showing on Shopify: how to fix it
- Etsy reviews not showing: why and what to do
- Trustpilot widget not loading: how to fix TrustBox
- Yotpo problems in 2026: what merchants report
- Contact Form 7 “error trying to send your message” fix
- Elementor form “Your submission failed because of an error”
- Framer form not sending email or not working: what to check
- Carrd contact form not working: plans, spam and errors
- Google review link not working: what customers see and why
- tawk.to widget not showing on your website: causes and fixes
- How to add questions and answers to your product page
- “Failed to send a request to the Edge Function”: fixes
- Next.js “Failed to find Server Action”: what it means
- Brevo “unauthorized: Key not found” 401: the fix
- Amazon SES “Email address is not verified”: the fix
- Shopify contact form not working: how to fix it
- Judge.me alternative for WooCommerce after the 2025 shutdown
- Free WooCommerce review plugins compared on the free version
- WooCommerce review reminder emails without a paid plugin
- Add Voice Recording to a Website Form
- Contact Form 7 spam: how to stop it
- WPForms not sending email: how to fix it
- Contact form emails going to spam: how to fix it
- HTML form not submitting: how to fix it
- Contact form not working: how to find the fault
- Webflow form spam: how to stop it
- Website form to Notion: how to set it up
- Website form to WhatsApp: what works and what does not
- What 1-star reviews say about AI support chatbots
- Which free form backend gives you the most submissions?
- Elfsight reviews widget not showing? Check the view limit
- Next.js contact form backend vs Server Actions
- Review stars not showing in Google search results
- How to stop duplicate form submissions
- How to see which form leads came from ChatGPT
- What happens when a form webhook fails
- When to send a review request email after an order
- How to collect video testimonials for free
- Add contact form sign-ups to Mailchimp or Klaviyo
- How to migrate from Formspree without losing submissions
- How to get a Google review link for your business
- What is a headless form backend?
- Is it safe to put a form access key in your HTML?
- AI chatbot that answers only from your website
- Minified React error #441 in Next.js
- Squarespace product reviews after Judge.me
- Accessible contact form checklist for WCAG 2.2
- How to ask a client for a testimonial by email
- How to respond to negative reviews, with examples
- 429 Too Many Requests on a contact form
- MCP server for forms in Cursor and Claude
- Can you offer a discount for a review?
- Do EU stores have to say if reviews are verified?
- Webflow form backend options compared
- How to add review schema JSON-LD to a product page
- How to turn a customer review into an Instagram post
- How to make a QR code for Google reviews
- Live chat or chatbot for a small business website
- Why people abandon your contact form halfway
- PHP mail() not sending email, even when it returns true
- What “Failed to fetch” means, tested in three browsers
- 405 Method Not Allowed when you submit a form
- Send a contact form to more than one email address
- What is review syndication, and who needs it?
- How to save HTML form data to a database
- NetworkError when attempting to fetch resource
- Send product reviews to Google Merchant Center
- PHPMailer not working on a live server
- AI review reply generator: does it help?
- React 19 contact form with useActionState
- Astro Actions or a form backend?
- Is no-reply@wixsiteautomations.com legit?
- Where to find the Judge.me review widget code
- AI review summaries: what shoppers actually see
- Photo reviews for WooCommerce, and the GPS inside them
- Review request email templates you can copy
- Reviews in AI search: what ChatGPT and Perplexity cite
- Lead capture form with UTM tracking, built and tested
- Form design best practices, with our own form data
- Client intake form template with file upload
- What is social proof? Meaning and examples
- What is user-generated content (UGC)?
- Benefits of negative reviews for your store
- How to get your first reviews as a new store
- How to use customer reviews in your marketing
- How to get more customer reviews
- React form validation without a library, tested
- jQuery submit form with validation
- reCAPTCHA v3 setup with the server score check
- Shopify social proof that shoppers can check
- HTML file input: accept, multiple, capture and size checks
- How to add hCaptcha to a form, with the server check
- How to add invisible reCAPTCHA to a form
- Bug report form template with browser details
- What the FTC fake reviews rule bans for online stores
- How to show reviews on your homepage
- Do reviews increase sales? What the studies show
- HTML input types and what each one sends
- HTML textarea, tested in a real form
- HTML dropdown menu in a form, tested
- Do reviews help SEO? What Google says and shows
- How to add a review carousel people can read
- Product review examples that help shoppers decide
- Which trust badges actually mean something
- Customer satisfaction survey with CSAT and NPS
- JavaScript FormData and what fetch actually sends
- JavaScript form validation without a library
- Server-side form validation and what it catches
- Email validation in JavaScript, tested on 33 addresses
- Zod form validation with FormData, tested
- Store reviews vs product reviews
- How to send review requests through Klaviyo
- How to tag customer reviews by topic and mood
- Custom review form questions worth asking
- Online reputation management for small businesses
- HTML radio button groups and what they send
- HTML label tag and what screen readers hear
- HTML autocomplete attribute, tested with Chrome autofill
- HTML fieldset and legend, and what disabled leaves out
- HTML button tag and what a form button sends
- Vite contact form that still works after the build
- How to test a contact form, end to end
- How to embed a Google Form, and what it loads
- Customer feedback questions that get real answers
- How to convert a file to base64 in JavaScript
- FilePond with a form backend, and when to skip it
- Bootstrap form validation and server errors
- Tailwind form validation, tested in three browsers
- Donation form in HTML, and where the payment goes
- How to ask for a review in person or by text
- Which review sites matter for your business
- What are customer reviews, and which kinds count
- Online review statistics, checked at the source
- Best review app for Shopify and WooCommerce
- Why Gmail sends your self-hosted mail to spam
- htmx contact form that sends to another domain
- AI form builders tested, from prompt to sent form
- Headless WordPress forms with Contact Form 7, tested
- React Hook Form watch vs useWatch, and what gets sent
- Elfsight widget not working? It vanishes when views run out
- Jotform not sending emails? Check Jotform's bounce list
- Typeform not working? A white box means a blocked script
- Positive review response examples that don't sound copied
- How to remove a Google review when you can't delete it
- Google reviews not showing up? 8 causes to check in order
- Is buying Google reviews illegal? Even a review swap counts
- Which reviews can you hide? A review moderation checklist
- Average star rating: what 4.8 from 5 reviews means
- Reviews on a product page: where and how many to show
- SaaS testimonials: 3 of 27 had a number in them
- Do reviews reduce returns? Not when they're too good
- Testimonial examples for business: what makes one believable
- Testimonial questions to ask clients, by type of business
- Testimonial page design: a page or a section?
- Testimonial advertising rules: what the FTC requires
- Form submission canceled because the form is not connected
- Input type date format dd/mm/yyyy: what you can change
- How to disable textarea resize, or allow only vertical
- How to prevent Enter from submitting a form
- form.submit() vs requestSubmit(): what submit() skips
- Custom HTML checkbox CSS that doesn't break required
- How to reset a form after submit, and what reset() keeps
- Input type number maxlength not working? What to use
- How to create an HTML form, step by step
- Best form builder: free plans and branding, checked
- Best WordPress contact form plugin: 10 free ones compared
- How to increase form conversion rate: start with the count
- Form backend vs form builder: which one do you need?
- WordPress contact form not sending email? 3 plugins tested
- Contact Form 7 webhook? Turning it on switched our email off
- Gravity Forms webhook: what it sends and the URLs it rejects