Send an HTML form to email without PHP
To send an HTML form to email without PHP, give it a hosted receiving URL. Your website submits the fields. The form service saves the message and sends its email notification.
Here is a native HTML form you can add to a static website. It needs no JavaScript handler.
1. Get your receiving URL
Create a GlueForms form, then copy its receiving URL. Replace YOUR_FORM_URL below with that URL. Keep private email API keys and SMTP passwords on the server, never in your HTML.
2. Add the form
<form action="YOUR_FORM_URL" method="POST">
<label for="contact-name">Name (optional)</label>
<input id="contact-name" name="name" autocomplete="name" />
<label for="contact-email">Email</label>
<input id="contact-email" name="replyto" type="email" autocomplete="email" required />
<label for="contact-message">Message</label>
<textarea id="contact-message" name="message" rows="5" required></textarea>
<button type="submit">Send message</button>
</form>Every field you want to receive needs a name. The action chooses the receiver, and method="POST" sends the values in the request body. MDN explains this native form behavior.
In this example, replyto explicitly sets the visitor’s reply address. You can reply to them without using their address as your email sender. Keep your existing styles, or edit and export a form before connecting it.
3. Test the published page
Send one recognizable message from your website. After acceptance, GlueForms displays a confirmation page or follows the HTTPS redirect configured for that form. Open Messages to confirm the saved fields, then check the email notification.
If your platform already receives and stores forms reliably, you can keep its built-in feature. If you need the visitor to stay on your page, use the JavaScript recipe instead of adding a second submission handler alongside this native form.
What GlueForms handles for you
Running your own receiver means maintaining request validation, private mail credentials, delivery diagnostics and a way to recover stored submissions. If you operate its sending domain, you also maintain SPF, DKIM and DMARC with your mail provider. You do not need to run your own mail server to do this.
GlueForms takes care of the form receiver and its managed notification sender. Accepted submissions stay saved if an email notification fails. You can review the original message and retry a failed notification manually. Get your receiving URL, or create the form first.