Skip to content
Lazyform

Contact form for HTML

Add a working contact form to any static HTML page. No server, no PHP, no JavaScript required: one form tag and an access key, and messages land in your inbox.

Free plan: 250 submissions a month, forever.

Why a form backend for plain HTML

A static HTML page can show a form, but it can't do anything with the answers. Browsers can't send email on their own, and mailto: links open the visitor's mail app (if they have one) instead of sending a message.

The usual fix is a PHP script or a small server. Lazyform replaces both: your form posts to our endpoint, we check it for spam, store it and deliver it. Your site stays a folder of files.

A working contact form

Paste this anywhere in your page and replace YOUR_ACCESS_KEY with your key. You can get one in seconds at /login.

contact.html
<form action="https://lazyform-api.xvelopers.com/submit" method="POST">
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
  <input type="hidden" name="subject" value="New message from my website">
  <input type="hidden" name="redirect" value="https://example.com/thanks.html">

  <label for="name">Name</label>
  <input id="name" type="text" name="name" required>

  <label for="email">Email</label>
  <input id="email" type="email" name="email" required>

  <label for="message">Message</label>
  <textarea id="message" name="message" rows="5" required></textarea>

  <!-- Honeypot: bots tick it, people never see it -->
  <input type="checkbox" name="botcheck" class="hidden" style="display:none">

  <button type="submit">Send</button>
</form>

Every field with a name is saved and delivered, so add a phone number, a budget dropdown or checkboxes the same way. The subject and redirect fields are optional; delete them if you don't need them.

Because the email field is called email, hitting Reply on the notification email answers the visitor directly.

Get submissions where you want them

Every submission arrives by email by default. You can also get it as a Telegram, Slack, Discord or WhatsApp message, add it as a row in Google Sheets, or post it to your own webhook. See all integrations.

Full guide

The HTML guide covers sending the form with fetch() so the page doesn't reload, showing errors, file uploads and every special field.

Questions

Do I need JavaScript for this to work?

No. A plain HTML form posts straight to Lazyform and the visitor is sent to a thank-you page. JavaScript is only needed if you want to show the result without leaving the page.

Can I host the page anywhere?

Yes. GitHub Pages, Netlify, Cloudflare Pages, S3 or shared hosting all work, because the form talks to Lazyform directly instead of to your host.

Is it safe to put the access key in my HTML?

Yes. The key only lets people send submissions to your form, not read them. To stop other sites from using it, list your domains in the form's settings.

How do I send visitors to my own thank-you page?

Add a hidden field named redirect with the full URL of your page. Without it, visitors see Lazyform's hosted thank-you page with a link back to your site.