Archive · Blog · 30 October 2017

Building a double opt-in
with Mautic.

Mautic automates marketing processes — which makes it a strong tool for small and mid-sized companies. This guide shows step by step how to set up a double opt-in in Mautic for collecting valid email addresses you are allowed to use for marketing.

Portrait of Matthias Eger — expert for AI & IT in mid-sized companies, Weiden in der OberpfalzAuthorMatthias EgerCertified Manager for Applied AI Transformation (IHK)
Last reviewed17 Jul 2026
To the verification record
Note: This page comes from an earlier version of matthiaseger.de and is kept online so existing links keep working. Current page: The letter “Klartext KI”

With intelligently placed campaigns and triggers, Mautic becomes a powerful helper for online marketing, customer loyalty and customer service. The heart of a serious email list is the double opt-in: a contact only counts as confirmed once they have reinforced their sign-up by clicking an activation link.

The ingredients.

  • A contact list (segment) “unconfirmed contacts”
  • A contact list (segment) “confirmed contacts”
  • An entry point, a form on a landing page for instance
  • A confirmation email with an activation link
  • A small campaign called “double opt-in”
Data protection — the occasion back then

The article was written in 2017, shortly before the GDPR came into force in 2018. Even then it held true: the technical infrastructure has to be prepared for data protection. It helps to rely on tools that can do it — and the double opt-in is still the standard for that today.

Step 1: create two contact lists.

First, two contact lists are created — through the menu item “Segments” and the button “New”: a list “unconfirmed contacts” and a list “confirmed contacts”. The aim is for new contacts to flow into the list “unconfirmed contacts” first. Later, each contact is moved into the list “confirmed contacts” by visiting the activation page.

Mautic segments: two contact lists, one for unconfirmed and one for confirmed contacts
Two segments: “unconfirmed contacts” and “confirmed contacts”.

Step 2: create the activation page as a landing page.

Contacts who react to the confirmation email are forwarded to an activation page. Their visit triggers the command in the background to move the contact into the list “confirmed contacts”. The activation page is a simple landing page in Mautic — created through the menu item “Components” under “Landing Pages”, designed however you like, in this example built in code mode.

Important: note down the ID of the landing page right away. The easiest way to find it is in the address bar when you click the landing page entry or hover over it with the mouse — the address ends similar to “…/pages/edit/2”. The 2 at the end is the ID. You will need it later in the confirmation link of the confirmation email.

Mautic landing page: creating the activation page for the double opt-in confirmation
The activation page as a simple landing page in Mautic.

Step 3: create a template for the confirmation email.

Contacts who sign up to the list land in the list “unconfirmed contacts” first. Only clicking the link in the confirmation email and visiting the landing page turns them into confirmed contacts — and for that you need a suitable confirmation email. It is created in the menu item “Channels” under “Emails”, again through the button “New”. In this example the template “Neapolitan” serves as the basis — the email can be designed however you like, though.

The most important part is the link that takes the reader to the landing page you created. Insert a link in a suitable place that carries the value {pagelink=ID} as its HREF attribute — as the ID, the landing page ID you noted down, so {pagelink=2} in this example.

Mautic email template: the confirmation email based on the Neapolitan template
The confirmation email based on the template “Neapolitan”.
The confirmation link in the Mautic email: the pagelink placeholder with the ID of the landing page
The activation link: {pagelink=ID} leads to the landing page.

Step 4: build the double opt-in campaign.

The heart of the process is the campaign — it takes care of the technical side: it moves the contact from the list “unconfirmed contacts” into the list “confirmed contacts” as soon as they have clicked the link in the confirmation email and visited the landing page. It is created in the menu item “Campaigns”, in this example under the name “double opt-in”.

In the campaign builder the campaign is clicked together step by step — the necessary elements (landing page, confirmation email, contact lists) already exist. The start is the entry point: in this case a form “new customer entry point” used as a sign-up form on another website.

Creating the new campaign “double opt-in” in Mautic
Creating the new campaign “double opt-in”.
Mautic campaign builder: the flow of the double opt-in campaign with form, email and condition
The flow in the campaign builder — from the form to the confirmed list.

Below it the first action is attached: “add to unconfirmed” moves the contact into the list “unconfirmed contacts”. At the same time another action follows directly under the entry point: “send opt-in email” sends the confirmation email created above to the contact.

After sending, the campaign is to check whether someone clicked the confirmation link. For that, the condition “visits activation page” is added under “send opt-in email” — with two possibilities: “yes” (green path on the left) or “no” (red path on the right). Action is only taken if the activation page was visited: below the green yes path follows the action “move to opt-in contacts”, which finally moves the contact into the list of confirmed contacts.

Campaign action in Mautic: adding a contact to the list of unconfirmed contacts
Action: add the contact to the list “unconfirmed contacts”.
Campaign action in Mautic: send opt-in email, with the confirmation email selected
Action: “send opt-in email” with the confirmation email.
Campaign condition in Mautic: visits activation page, with a yes path and a no path
Condition: “visits activation page” — yes path green, no path red.
Campaign action in Mautic: moving a contact into the list of confirmed contacts
Action: move into the list “confirmed contacts”.

Conclusion.

“A lot of talk for a short point — but this way the right contacts are in!”

That completes the double opt-in campaign. The contacts in the list “confirmed contacts” have been collected cleanly and can be used for future email marketing campaigns.

The article is from 2017 — the principle still holds today.

My own letter “Klartext KI” works exactly the same way: confirm first, then receive. Once a month, three minutes of reading.

Go to the letter
Get in touch