HTML form to email
An HTML form cannot send email by itself: the browser can only post the data to a server. There are three ways to bridge that. A mailto: action opens the visitor's email program and fails for many people. A PHP script works if your host runs PHP and you keep it secure. A form endpoint needs no server at all: the form posts to it, and it emails you.
- 1
Create a free FormTango account and add a form. Copy its endpoint, which looks like https://formtango.com/f/YOUR_FORM_ID.
- 2
Set your form's action to the endpoint and its method to POST.
- 3
Give every field a name. A field named email becomes the reply-to address.
- 4
Submit the form once. The submission appears in your FormTango inbox and you get an email.
html
<form action="https://formtango.com/f/YOUR_FORM_ID" method="POST">
<label>Name <input type="text" name="name" required></label>
<label>Email <input type="email" name="email" required></label>
<label>Message <textarea name="message" required></textarea></label>
<!-- Spam trap: leave this hidden and empty -->
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">
<button type="submit">Send</button>
</form>Good to know
- No PHP, no SMTP password and no JavaScript are involved. It works on any host, including static ones.
- Each email has the visitor's address as reply-to, so you answer by pressing Reply.
- Submissions are also kept in an inbox, so nothing is lost if an email goes to spam.
What you get
- Every submission saved in an inbox you can search and export.
- An email for each one, with the visitor's address as the reply-to.
- Spam filtering without making visitors solve a puzzle.
- Problems? See troubleshooting.
Related guides
Contact form without a backendSubmit a form without redirectingHTML file upload formStop contact form spamA form backend for AI coding agents
Last reviewed November 19, 2026.