Forms and landing pages
Embedding a signup form on your website
By mailers.io team Published 6 min read
public/media/blog-embed-a-signup-form-cover.webp A signup form is the point where a visitor becomes a contact. It has to look like part of your site, work on a phone and keep bots out, and it has to put the right person on the right list. This post explains the three kinds of form in mailers.io, how to add each to a site and what to check before you publish.
The three kinds
When you create a form you choose one of three kinds. You cannot change the kind afterwards, so choose with the page in mind.
- Hosted. The form lives on its own page on a mailers.io address. You link to it from a menu, a bio or an e-mail. Nothing needs to be installed on your site. It is the quickest way to start.
- Embed. The form sits inside one of your pages, in a frame, so it can appear next to your own text and images. You paste a snippet where you want it.
- Pop-up. The form appears over a page of your site, triggered by something the visitor does. It needs a small script on the site and a registered website.
All three feed one list. Pick the list first, because the list decides what happens after the submit: whether the visitor is subscribed straight away or asked to confirm, and which From address and language the welcome or confirmation e-mail uses.
Build the form
Forms are made in a full-screen builder. A form is a stack of blocks: heading, text, e-mail field, extra field, button, image, divider and spacer. The e-mail field is required. Extra fields are the custom fields of the list, so create a field on the list before you add it to a form. A field can be marked required in the form without being required on the list.
You can start from a starter instead of a blank form. There are starters for a newsletter, a waitlist, a lead magnet, an event RSVP and a contact or feedback form. A starter creates the list fields it needs, or reuses fields with the same tag and type.
The Style tab lets you choose the accent colour, background, font from a set of system fonts, corner radius, width and button style. Keep it plain. A form with fewer fields converts better, and every extra field is another reason to leave. Ask for the address and, if you truly need it, a first name.
Write the text for a person who has never heard of you. One line saying what they will get and how often is enough. See accurate, minimal consent text for wording.
The list needs a From address before it can send its confirmation and welcome e-mails. If it has none, the app shows a warning in the list settings and in the form builder, so fix that before you publish.
Add a hosted form
Publish the form and copy its public address from the form’s embed details. Put that address wherever you want sign-ups: your site’s menu, a social profile, a QR code, the footer of an e-mail. The hosted page cannot be framed by other sites, which is a protection against someone placing it inside a page that tricks visitors.
Add an embedded form
Copy the snippet from the form’s embed details and paste it into your page where the form should appear. The snippet loads the form in a frame and a small script resizes the frame to fit the form, so there is no scrollbar inside it. Because it is a frame, the form keeps its own styles and your site’s CSS does not break it.
If your site builder has a custom HTML block, use it. If your site’s security policy limits what can be framed or loaded, you may need to allow the mailers.io public pages address in it. A page that works in a preview but not live often has this cause.
Add a pop-up
A pop-up form needs a website registered in mailers.io. You add your site, paste a one-line loader script on every page where a pop-up may appear, and click Check now. The check fetches your page and looks for the exact script tag with your site’s identifier, so a snippet written in a blog post or inside a comment does not count.
Then you bind the pop-up form to the site and choose when it shows:
- immediately,
- on the visitor’s first visit,
- after a number of seconds,
- when a particular element is clicked,
- when the visitor moves to leave the page.
Be sparing. A pop-up that fires the moment the page loads is the fastest way to lose a visitor. A pop-up on exit intent or after a click of the visitor’s own choosing is more respectful and often performs better. Never show a pop-up on a page where the visitor is trying to read something short.
Keep bots out
Every public form attracts bots that submit false addresses, which can hurt your list and send confirmation e-mails to strangers. Three layers help:
- A hidden honeypot field. A person never sees it. A bot fills it in and the submission is dropped.
- Rate limits. The submit route is limited per visitor address, so one source cannot submit endlessly.
- An optional challenge. You can turn on reCAPTCHA or Cloudflare Turnstile for a form, using your own keys. These services are chosen and configured by you, so read their terms and tell your visitors in your privacy notice.
Double opt-in is also a spam filter: a bot cannot confirm an address it does not own. For most public forms, it is the best protection you have. See double opt-in, step by step.
What happens on submit
When someone submits, the form checks the address and the required fields, then adds them to the list.
- On a single opt-in list, they are subscribed at once and receive a welcome e-mail if the list sends one.
- On a double opt-in list, they are saved as unconfirmed and receive a confirmation e-mail. They count as subscribed only after they click the confirm link.
After the submit, the visitor sees the form’s success message. For a double opt-in list, the starter text asks them to check their inbox, so keep that wording if you change the message.
Test before you publish
- Submit your own address through the live page, not only in the preview.
- Read the e-mail you receive on a phone. Check the From name, the subject and the confirm button.
- Submit a bad address. Check that the error message makes sense.
- Look at the list. The contact should be there with the right status and fields.
- Check the page on mobile. Tap targets should be easy to hit.
- Try it from a second address that is already on the list. Know what a returning visitor sees.
Forms also keep daily statistics, so you can see how a form performs over time and spot one that nobody completes. If you want a full page around the form, with a headline, images and proof, use a landing page instead: see the landing-page builder and the forms page.
Questions and answers
Can I change a form from embedded to pop-up later?
No. The kind is fixed when you create the form. Create a new form of the other kind on the same list; the list and its contacts are shared.
Does the embedded form need a plugin for my site?
No. You paste a snippet into the page. There is no separate plugin for any site builder.
What if the form is not published yet?
A draft form does not accept sign-ups. Visitors see a not-found page until you publish it.
Written by the mailers.io team. Published .