Build and Launch a Website with AI
AI website contact form not sending email? Connect Formspree and test delivery (2026)
Replace a simulated success message with a working contact form. Check the request, stored enquiry, notification and Reply-To, with HTML and an AI implementation prompt.

A contact form can display “Message sent” without sending anything. On an AI-built site, check the outgoing request, the submission record and the notification email separately. A convincing animation proves only that the interface changed.
This guide connects a simple contact form to Formspree and gives you a test procedure for a portfolio or small business enquiry page. Platform instructions were checked against official documentation on November 24, 2026. These are implementation instructions, not a claim that your account or email delivery has been tested.
Use a unique message such as contact-test-20261124-a. Follow that marker through the request, dashboard and inbox.
| What happens | What to investigate |
|---|---|
| Success message, no outgoing submission | A demo handler or simulated success state |
| Submission leaves the browser but fails | Endpoint, method and actual error response |
| Apparent success, no dashboard entry | Wrong form or spam filtering |
| Dashboard entry exists, no email | Notification recipient and email delivery |
| Email arrives but Reply targets the wrong address | Visitor email field and Reply-To |
If the site currently has only a visual form, the guide to working forms and backends explains what needs to happen outside the page.
Create a Formspree account, verify your email and choose New Form in the dashboard. Give the form a recognizable name. Copy its endpoint from Integration, following the official HTML form instructions.
Use your own ID-based endpoint, in the form https://formspree.io/f/YOUR_FORM_ID. Replace the placeholder before publishing. Older tutorials that put an email address directly in the action URL use a different workflow; see the legacy form migration note.
Check the form's target email or notification destination. Your account email, the visitor's email and the notification recipient serve different purposes. Review the current account limits before relying on this service for ongoing enquiries. A working integration does not imply unlimited submissions.
Save a copy or commit the existing page first. Keep its layout and change the submission wiring. For a plain HTML page, replace YOUR_FORM_ID in this example:
<form action="https://formspree.io/f/YOUR_FORM_ID" method="POST">
<p>
<label for="contact-name">Name</label>
<input id="contact-name" name="name" autocomplete="name">
</p>
<p>
<label for="contact-email">Your email</label>
<input id="contact-email" name="email" type="email"
autocomplete="email" required>
</p>
<p>
<label for="contact-message">Message</label>
<textarea id="contact-message" name="message" rows="6"
required></textarea>
</p>
<input type="text" name="_gotcha" style="display:none"
tabindex="-1" autocomplete="off">
<p>Include only the information needed for this enquiry.</p>
<button type="submit">Send enquiry</button>
</form>
This uses a native browser POST and normally navigates away to a provider response page. Establish that working path before adding an in-place success state.
The id connects a field to its label; the name identifies its submitted value. A visitor address named email is used for Reply-To. It does not redirect your notification to the visitor.
The hidden _gotcha field should stay empty. Formspree documents that a filled honeypot can cause a submission to be silently discarded. Check that autofill or custom scripts do not populate it.
Inspect existing onsubmit, onSubmit and preventDefault() handlers. Changing an action URL will not help if an old handler cancels submission and immediately displays a fake success message.
A React or Vite page can use native form submission, but the markup must match JSX: for example, use htmlFor and convert the inline style to an object or a CSS class. Ask the coding assistant to adapt the existing component rather than pasting HTML unchanged.
If remaining on the page is a requirement, choose a suitable approach from the official AJAX guide. Show success only after an accepted response. Keep the visitor's input when submission fails. If the request times out, the outcome is unknown: inspect the dashboard before sending it again.
Do not add mode: "no-cors" to hide errors; it prevents reading a normal response to verify the result. The public form ID belongs in frontend code. SMTP passwords and account management keys do not.
Use the actual public site, not just the AI editor preview. If it still serves an old form, check the live deployment and caching.
- Open the browser's Network panel and enable Preserve log. Native submission is a navigation: inspect document requests or All, not only Fetch/XHR.
- Enter an email address you control and the unique test marker. Submit once and complete any verification challenge.
- Check the destination, POST method, submitted fields and response. A redirect to an error page is not a successful enquiry.
- Find the marker in the correct Formspree form and confirm the fields are complete and not duplicated.
- Find the notification in the configured recipient's inbox. Click Reply and inspect the recipient before sending any response.
- Repeat from a phone and the network your intended visitors use. Record the deployment version, time and result.
A 2xx response is evidence at the request layer. You still need the dashboard record and received email to verify the complete route. These tests require access to your form account and mailbox; a static code review cannot replace them.
Check the selected notification recipient and Spam. With a business mailbox, ask whether the message is in an administrative quarantine rather than the user's junk folder.
The official missing-email guide also covers sending-side suppression after a receiving-server problem and the recovery procedure. Follow that procedure for your own recipient address, or provide the provider with the submission reference and test time.
Avoid generating more copies while investigating delivery. An existing stored enquiry and a missing notification are different problems.
If one click creates two records, inspect duplicate event handlers. For AJAX, disable the submit button while a request is pending and restore it when finished. If the service reports a rate or account limit, display the error instead of retrying in a loop. Review the system and plan limits, and do not load-test the public endpoint.
If you enable a domain restriction, retest after changing domains. Also verify that any challenge works on the visitors' network. A successful test on the developer's laptop does not establish availability for every audience.
Inspect the current contact form without redesigning the site.
Identify native POST, actual AJAX, or simulated success behavior.
Use my own Formspree endpoint; ask for it rather than inventing an ID.
Preserve submitted field names and use email for the visitor address.
Start with native form submission and adapt markup to this framework.
Remove conflicting demo handlers and duplicate submit listeners.
If AJAX is required, follow official guidance for loading, success and failure.
Never use no-cors or include SMTP passwords or management keys.
Keep input on failure and explain that a timeout has an uncertain outcome.
Provide a production test for request, dashboard record, email and Reply-To.
List checks requiring my account instead of claiming they already passed.
Record who owns the form and where notifications go. Add this to your website backup and handover notes, so a later hosting migration does not leave new enquiries flowing into an old account.