Skip to content
Lazyform
All templates

Newsletter signup

A compact inline email signup for footers and blog posts.

Get the code

Get one useful email a month

Short, practical, no fluff. Unsubscribe whenever you like.

The code

Uses Tailwind CSS classes. Replace YOUR_ACCESS_KEY with your form's key.

newsletter.html
<form action="https://lazyform-api.xvelopers.com/submit" method="POST" class="mx-auto flex w-full max-w-2xl flex-col gap-6 rounded-2xl border border-gray-200 bg-white p-8 shadow-sm md:flex-row md:items-center">
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
  <input type="hidden" name="subject" value="New newsletter subscriber">
  <input type="checkbox" name="botcheck" class="hidden" style="display:none" tabindex="-1" autocomplete="off">

  <div class="md:flex-1">
    <h2 class="text-xl font-semibold text-gray-900">Get one useful email a month</h2>
    <p class="mt-1 text-sm text-gray-600">Short, practical, no fluff. Unsubscribe whenever you like.</p>
  </div>

  <div class="flex flex-col gap-2 sm:flex-row md:flex-1">
    <label class="sr-only" for="newsletter-email">Email</label>
    <input id="newsletter-email" type="email" name="email" required autocomplete="email" placeholder="you@example.com" class="min-w-0 flex-1 rounded-lg border border-gray-300 px-3 py-2.5 text-gray-900 outline-none focus:border-gray-900 focus:ring-2 focus:ring-gray-900/10">
    <button type="submit" class="rounded-lg bg-gray-900 px-4 py-2.5 font-medium text-white hover:bg-gray-700">Subscribe</button>
  </div>
</form>