How to create a subscription form in WordPress with Mailrelay: 3 ways
With the plugin, by pasting the code or as a pop-up: choose the way that best fits your website and start capturing subscribers today

With the plugin, by pasting the code or as a pop-up: choose the way that best fits your website and start capturing subscribers today
To add a Mailrelay form to WordPress you have three options: the official plugin, pasting the code into an HTML block or showing it as a pop-up.
None of them requires coding. Here’s how to do it step by step, when each one makes sense and what happens when someone subscribes.
All three options use a form you create beforehand in Mailrelay, under Subscribers > Signup forms.
There you choose the fields, the groups subscribers join and the design.
Also turn on the Captcha and the honeypot field, which prevent fake sign-ups.
You’ll find the step-by-step guide in how to create a subscription form in Mailrelay.
| Method | Needs a plugin | Difficulty | When to use it |
|---|---|---|---|
| Official Mailrelay plugin | Yes, the Mailrelay one | Very easy | If you use the block editor and also want to sync your users |
| Embedded code | No | Easy | If you don’t want to install plugins or you use Elementor or another page builder |
| Pop-up | No | Easy | If you want the form to appear in a pop-up window |

Create your subscription form for free
Forms, pop-ups and landing pages are included in Mailrelay’s free account too.
The Mailrelay plugin for WordPress is free and available in the official WordPress plugin directory.
As well as displaying your forms, it syncs your website’s users with Mailrelay groups.
The plugin has more features you may find useful:
If you’d rather not install plugins, copy the form code and paste it into your website.
How to get the code in Mailrelay:

The code is made up of an iframe and a script. You need to paste both parts together.

How to paste it into WordPress:
The form’s look doesn’t depend on your theme: you change the colors and the button in the form’s Design tab in Mailrelay.
The pop-up opens the form in a window over your website. It’s more visible, but it can also be annoying if it appears too soon.

If you choose the button, you can change its text, which is “Subscribe” by default.
The leave-the-page option may not work in every browser or on mobile.
Each form has its own URL, which opens a page with just the form.
You can share it on social media, in your email signature or in a QR code.
If you want a full page for a campaign, with a headline, benefits and a form, create a sign-up landing page with Mailrelay’s editor.
And pay attention to the copy: say what you’ll send and how often. You’ll find ideas in how to write your subscription form.

That way you know which form brings you the most subscribers and where it’s worth placing it.
Welcome every new subscriber
An automation sends the welcome email as soon as someone signs up through your form.
The free account lets you send up to 80,000 emails a month to 20,000 contacts.
Turn your visitors into subscribers
Free account: up to 80,000 emails a month to 20,000 contacts, with human support.
No. You can paste the form code into a Custom HTML block. The official plugin makes it easier and adds user sync.
Yes. Paste the form code into Elementor’s HTML widget, in the section where you want it to appear.
Yes, in the form’s Design tab in Mailrelay. The form doesn’t pick up your theme’s styles.
Turn on the Captcha and the honeypot field in the form. And use double opt-in, which confirms each address.
In each form’s Conversions tab, in Mailrelay.
How to create a subscription form in Mailrelay
Fields, groups, design and spam protection, step by step.
Sign-up landing page
What it should include and how to create one for free with Mailrelay’s editor.
How to write your subscription form
What text to put in each field and on the button to get more sign-ups.
Tips for creating the perfect pop-up
When to show it and how to design it so it isn’t annoying.
Jose Argudo
CMO at Mailrelay. Writes about email marketing, copywriting and conversion for small businesses and entrepreneurs.