How to Send an HTML Form to Email Without PHP

A production-minded way to send an HTML form to email without building PHP mail handlers or custom backend routes.

FS Formserve Team · Jun 12, 2026 · 2 min read

A plain HTML form can send data to email without PHP, but not by magic. The browser still needs a backend endpoint that receives the form and then sends the email.

Why “HTML to email” is really a backend problem

HTML only defines the UI and the submission request.

Email delivery happens after the backend accepts the request. That means the practical question is not “how do I email from HTML?” It is “where should this form submit so the backend can route it to email?”

That is exactly the use case behind HTML form to email.

Minimal working example

<form action="https://formserve.io/f/YOUR_ENDPOINT_KEY" method="POST">
  <input type="text" name="_honeypot" tabindex="-1" autocomplete="off" style="position:absolute;left:-9999px" />
  <input type="text" name="name" required />
  <input type="email" name="email" required />
  <textarea name="message" required></textarea>
  <button type="submit">Send</button>
</form>

Once that request reaches the endpoint, the backend can:

  • store the submission
  • send the owner a notification email
  • optionally send an auto-response
  • forward the same submission to Slack, Sheets, or a CRM

Why this is cleaner than PHP scripts

A lot of old tutorials still recommend hand-rolled PHP mailers. That creates maintenance work immediately:

  • mail transport setup
  • spam filtering
  • logging
  • retries
  • storage
  • delivery debugging

If the job is just “accept the form and notify the right person,” a dedicated form backend is usually the cleaner path.

What to configure before launch

  • add the production domain to allowed domains
  • include _honeypot for basic spam blocking
  • verify which email address receives notifications
  • test from the final deployed page

When email should not be the only destination

Email is useful, but it should not be the only operational layer when leads matter.

For example, you may also want to:

That keeps the form workflow visible even if one email gets lost or ignored.

The better rule

Use email as one destination, not the whole system.

If you want the browser to stay simple while the backend handles routing, start with Contact form backend and then add the destinations the business actually needs.

Try Formserve

A reliable form backend in 60 seconds.

Create an endpoint, paste the URL into your form action, and route submissions to email, Slack, webhooks, and more.

Start free

Keep reading

More from the journal

All posts