Blog

How to send HTML form submissions to email

Send HTML form submissions to your email inbox with SiteBackend. Add a form endpoint, choose recipients, and test delivery without writing server code.

Yash··4 min readTutorialsContact FormsEmail Notifications

To send HTML form submissions to email, post the form to a backend and configure that backend to notify your inbox. With SiteBackend, you paste a form endpoint into your HTML and add an Email channel in the dashboard. SiteBackend stores the submission and sends the notification, so you don't need to write server code or put email credentials in your website.

This guide focuses on getting messages into your inbox. For a broader walkthrough of publishing the form and configuring your domain, see how to add a contact form to a static website.

How does form-to-email work?

There are three addresses to keep separate:

AddressPurposeWhere you set it
Form endpointReceives the submitted fields.Your HTML form's action.
Notification destinationReceives the email about a new submission.The form's Email notification channel.
Visitor's emailIdentifies the person who filled in the form.The form's email input.

Your form posts to the endpoint. The notification destination is configured in SiteBackend, so changing the receiving inbox doesn't require editing your website.

1. Create an endpoint for your form

Sign up for SiteBackend, click Add site, and open your site. Click New form, give it a name, and copy its endpoint from the form's page.

The URL looks like https://api.sitebackend.com/forms/YOUR_FORM_ID. Use your actual URL in the example below.

2. Paste this form into your HTML page

This form collects a name, email address and message. It submits without JavaScript.

contact.html
<form action="https://api.sitebackend.com/forms/YOUR_FORM_ID" method="POST">
  <label for="sender-name">Name</label>
  <input
    id="sender-name"
    type="text"
    name="name"
    autocomplete="name"
    required
  />
 
  <label for="sender-email">Email</label>
  <input
    id="sender-email"
    type="email"
    name="email"
    autocomplete="email"
    required
  />
 
  <label for="sender-message">Message</label>
  <textarea
    id="sender-message"
    name="message"
    rows="6"
    required
  ></textarea>
 
  <input
    type="text"
    name="_gotcha"
    tabindex="-1"
    autocomplete="off"
    style="display:none"
  />
 
  <button type="submit">Send message</button>
</form>

Replace YOUR_FORM_ID with the ID in your copied endpoint. Give every field a name, because that is how its value is included in the submission. Keep the hidden _gotcha field empty; it helps identify automated spam.

If you're replacing an existing form, check for JavaScript that intercepts submission. A handler that only shows a success message will prevent this HTML form from reaching its endpoint. Use the JavaScript submission guide if you want to handle the response on the same page.

3. Choose the inbox that receives submissions

In SiteBackend, open Form → Notifications → Add channel and select Email. Enter the destination address and save the channel. Check that its test email arrives and that the channel is enabled.

The destination can be your business inbox or another address where you want to handle enquiries. For several recipients, enter email addresses separated by commas. An Email channel supports up to ten recipients across its To and CC fields.

See notifications and webhooks for channel settings and delivery logs.

Can I reply directly to the visitor?

The Email channel's Reply-to field defaults to email. When that submitted field contains a valid email address, SiteBackend uses it as the notification's Reply-To address. Keep name="email" on the HTML input so the default matches your form.

This lets you reply to the enquiry from your email client. The destination inbox is still the address you configured in the channel; the visitor's address is used for your reply.

4. Test the form and the email together

Publish your contact page and submit it with an address you control. Use a recognizable message such as “Form-to-email test from my website”. Then confirm:

  1. The browser reaches the thank-you page after submitting.
  2. The message appears in the correct form's SiteBackend inbox.
  3. The notification arrives at the email destination you configured.

These checks verify different steps. A channel test checks the notification path, while a submission from your live website also checks the endpoint and form markup.

By default, HTML submissions redirect to SiteBackend's thank-you page. To send visitors back to your own website, set a Redirect URL under Form → Settings → After submit. See thank-you page settings.

Can I send an automatic confirmation to the visitor?

Yes. On Pro, enable Auto-reply in the form's settings. This sends a separate confirmation to the person who submitted, using the form's configured email field.

The notification to your team and the auto-reply to the visitor serve different purposes. Test each using an address you control. See creating a form for auto-reply settings.

What if the submission arrives but the email doesn't?

Open the form's Notifications tab and check the destination, enabled status and delivery log. Check the receiving inbox's spam folder too. Failed deliveries can be retried from the dashboard.

Spam submissions don't send notifications. On Free, submissions beyond the monthly limit are saved but hidden until you upgrade and don't send notifications either. Check spam protection and plans and limits if those apply.

For a step-by-step diagnosis from the browser to the receiving inbox, see contact form says sent, but no email arrives.