Add a newsletter signup form to your website
Emit turns your RSS feed into a newsletter. To collect readers, drop a subscribe form on your site — it posts straight to the Emit API, double-opt-in is automatic, and you send from your own domain. Below are copy-paste snippets for the most common stacks. Grab your personalized version (with your form token filled in) from the dashboard under Embed.
pk_YOUR_TOKEN with your account's public form token from the dashboard.
The public token is safe to ship in client-side HTML — it can only create pending (opt-in)
subscribers, nothing else. Every snippet includes a small “powered by emit” link.
Plain HTML (any site)
The universal option. Works without JavaScript: it submits to Emit and redirects to a “check your inbox” page.
<form action="https://api.rssemit.com/v1/public/subscribe" method="post"> <input type="hidden" name="token" value="pk_YOUR_TOKEN"> <input type="hidden" name="redirect" value="https://rssemit.com/subscribed.html"> <input type="email" name="email" required placeholder="you@example.com"> <button type="submit">Subscribe</button> <a href="https://rssemit.com?ref=embed">powered by emit</a> </form>
Point redirect at any “thanks, check your inbox” page on your own site if you
prefer.
Hugo
Save the HTML above as layouts/partials/subscribe.html, then include it in a
template or shortcode:
{{ partial "subscribe.html" . }}
WordPress
Add a Custom HTML block (Gutenberg) or a Custom HTML widget, and paste the plain-HTML snippet. No plugin required.
Webflow
Drop an Embed element where you want the form and paste the plain-HTML snippet. Publish — that's it.
Wix
Add Embed → Embed HTML (Custom Code) and paste the plain-HTML snippet.
React / Next.js
Use a small component that posts to the public endpoint (no API key needed client-side):
<form onSubmit={async (e) => {
e.preventDefault();
await fetch("https://api.rssemit.com/v1/public/subscribe", {
method: "POST", mode: "no-cors",
body: new URLSearchParams({ token: "pk_YOUR_TOKEN", email: e.target.email.value }),
});
// double opt-in: show "check your inbox"
}}>
<input name="email" type="email" required />
<button>Subscribe</button>
<a href="https://rssemit.com?ref=embed">powered by emit</a>
</form>
How it works
- Double opt-in: a new email is created as pending and gets a confirmation link; it isn't mailed until confirmed.
- Spam-resistant: snippets include a honeypot field and the endpoint is rate-limited.
-
Your domain: verified senders mean newsletters arrive from
posts@yourdomain.dev. -
Programmatic: prefer code? Fetch your snippets from
GET /v1/snippetsor read the API docs.