This article describes how to create a workflow that allows recipients to unsubscribe from your commercial messages with verification via double opt-out. Unsubscribing is possible for all recipients, regardless of whether they have already received commercial messages from you — including recipients who are not in your database at all.
The process has 4 steps and to work successfully you’ll need a total of three landing pages and one transactional template:
- 1 standalone landing page with a form to enter email addresses,
- 1 standalone landing page informing recipients that an email has been sent, in which they must confirm the unsubscription of their email address,
- 1 transactional template that the recipient receives after their email address is entered into the form. The template is used for the double opt-out, and the recipient clicks a link in it to confirm they really want to unsubscribe,
- 1 standalone landing page with final confirmation that the email address has been unsubscribed.
Create a transactional template for double opt-out
You can find the basic procedure in the chapter for creating a transactional template.
A transactional template may have any design, but it must state that clicking the included link will unsubscribe the recipient and specify what they will be unsubscribed from after completing the process (typically from receiving your commercial messages).
Unlike a regular transactional template, this double opt-out template must include a button or hyperlink that points to the variable {{confirmUnsubscribeUrl}}. After the message is sent, that variable becomes a link which, when clicked, will unsubscribe the recipient.

After creating a template, note its ID, which you’ll need when creating a landing page with a form. You can find this ID in the page URL after opening the template in the editor. For example, for the URL below, the template ID is 62165.
https://app.boldem.cz/#/secured/376407/templates/edit/62165/dnd
Creation of 3 landing pages
Now we’ll create three separate landing pages — two informational and one with a form. We’ll create the landing page with the form last because it needs the URLs of the first two.
Creating the 1st informational landing page for redirectUrl
- In your Boldem account, go to Settings and select Landing pages.
- Click New page.
- Enter the Landing page name – e.g. Email address confirmation.
- This landing page appears after a recipient’s email address is submitted through a landing page form and notifies the recipient that you are sending a message in which they must confirm their unsubscription by clicking a link. Adapt its content to this scenario, e.g.:
Please confirm your email address.
We need to verify it’s really you!
Please confirm unsubscribing from newsletters in the email we just sent to your inbox.
- Save the landing page and copy its link from the Public links section on the Information tab.
- Save this link somewhere along with the redirectUrl variable.
Create 2nd informational landing page for unsubscribeRedirectUrl:
- In your Boldem account, go to Settings and select Landing pages.
- Click New page.
- Enter the Landing page name – e.g. Unsubscribe confirmation.
- This landing page appears after the recipient’s email address has been successfully confirmed via the link in the email. Tailor its content to that scenario, e.g.:
Unsubscription successfully confirmed!
We confirm that your email address has been unsubscribed from the commercial emails sent by Example, s.r.o..
Due to complex automated processes and technical limitations, changes in our system may not take effect for a few days, so you may still receive promotional messages for a short time after unsubscribing.
Thank you for your understanding.
- Save the landing page and copy its link from the Public links section on the Information tab.
- Make a note of this link somewhere along with the variable unsubscribeRedirectUrl.
Creating the 3rd landing page with a form
Finally, we’ll create a landing page with a form to enter the email address to be unsubscribed.
- In your Boldem account, go to Settings and select Landing pages.
- Click New page.
- Enter Landing page name – e.g. Unsubscribe form with double opt-out.
- You show or send this landing page to recipients who indicate they want to unsubscribe from your commercial messages. Tailor its content to that scenario, for example:

- The form must meet the following rules:
- send data using the
POSTmethod, - include a field for the action, i.e. an input with the attribute
name="action_type"to specify the action type and the value “confirm_unsubscribe_send_email“, - include a required email address field: input
type="email"with therequiredattribute, - contain an attribute identifying the transactional template – an input with the attribute
name="templateId", where you enter the template ID you noted down earlier in thevalue. - redirect redirectUrl: input
name="redirectUrl"withvaluepointing to a landing page that prompts the recipient to confirm unsubscribing via email, - unsubscribeRedirectUrl redirect: input
name="unsubscribeRedirectUrl"withvaluepointing to a landing page that informs the recipient they have been unsubscribed, - button to submit the form.
- send data using the
Below is an example of what that code might look like. Replace the values templateId, redirectUrl, and unsubscribeRedirectUrl with the ones you created in your account.
<form class="form text-start" method="POST">
<div class="form_group">
<label for="email">Email</label>
<input id="email" name="email" required="" type="email" />
</div>
<input name="action_type" type="hidden" value="confirm_unsubscribe_send_email" />
<input name="templateId" type="hidden" value="13285" />
<input name="redirectUrl" type="hidden" value="https://track.example.cz/lp/486118/moje-nova-landing-page-1-42" />
<input name="unsubscribeRedirectUrl" type="hidden" value="https://track.example.cz/lp/486118/moje-nova-landing-page-2-43" />
<button class="btn" type="submit">Confirm</button>
</form>- Save the landing page with the form and copy the link from the Public links section on the Information tab.
- Open the link in your browser and test the whole process by entering an existing email address of a test recipient that is still subscribed into the unsubscribe field. You can also enter your own test email address that isn’t in your account at all.
- After confirming the test recipient in the email, check that it appears correctly in Mailing lists/Unsubscribed recipients.
You have now created everything needed to unsubscribe recipients using double opt-out verification. You can now use the landing page’s public link with the form as needed.