Double Opt-in

Estimated reading: 4 minutes 15 views

Introduction

Double opt-in, also known as confirmed opt-in, is a method of ensuring that subscribers explicitly confirm their consent to receive marketing communications. This process is not only a best practice but is required by law in many countries under anti-SPAM regulations (such as GDPR in Europe or CAN-SPAM in the U.S.).

 

Key Benefits:

  • Validates email addresses
  • Prevents fake or spam sign-ups
  • Keeps mailing lists clean
  • Ensures high-quality, engaged contacts

Odoo supports double opt-in functionality via a pre-configured campaign template in the Marketing Automation app.

Step-by-Step Instructions

 

How Double Opt-In Works in Odoo

When you use the Double Opt-in campaign template in Odoo 18:

  1. A new mailing list named Confirmed contacts is automatically created in the Email Marketing
  2. When a contact is added to the Newsletter mailing list (e.g., through a website signup form), they receive a confirmation email.
  3. If the contact clicks the confirmation link, they are added to the Confirmed contacts mailing list.
  4. Only these confirmed contacts are considered to have given explicit consent to receive marketing emails.

Setting Up the Double Opt-In Campaign

1. Access the Template

  • Open the Marketing Automation
  • In the Campaigns dashboard, if templates are not visible, search for a non-existing campaign name (e.g., empty) to display template options.
  • Select the Double Opt-in campaign template.

2. Campaign Configuration

The campaign is pre-filled with the following settings:

Field

Value

Name

Double Opt-in

Target Model

Mailing Contact

Unicity Based On

Email

Filter

Email is set, Not blacklisted, Subscribed to Newsletter mailing list

Responsible

User who created the campaign (Visible in Developer mode)

Do not modify the Target model once activities are added. Doing so will break the workflow.

 

Workflow Activities

The campaign includes two default activities:

 

1. Confirmation Email

  • Triggers: 1 hour after a new contact is added to the Newsletter mailing list.
  • Uses: Pre-configured Confirmation email
  • Contains: A single confirmation button linking to the website.

Customize the email by clicking the Templates smart button on the campaign form.
 Keep it short, clear, and focused on the confirmation action.

Tip:
 Create a custom “Thank You” page on your website and update the confirmation button URL to direct users there.

 

2. Add to Confirmed List (Server Action)

  • Triggers: When the contact clicks the confirmation button.
  • Action: Adds the contact to the Confirmed contacts mailing list.

Only include one clickable link in the email body (excluding the unsubscribe link). Multiple links may cause unintended triggers.

 

Editing Server Actions

You can edit the server action by:

  • Clicking the activity title
  • Opening the “Open: Activities” window
  • Modifying configuration (e.g., setting an expiry)

Do not edit the preconfigured Python code in the “Add To Confirmed List” server action. Changes may affect your Odoo subscription plan.

 

Testing and Launching the Campaign

Before going live:

  1. Run a test of the campaign using test contacts.
  2. Verify that the confirmation email is sent and that confirmed contacts are properly added to the Confirmed contacts
  3. Once confirmed, start the campaign.

You’re now ready to collect complaint and engaged subscribers for your marketing emails.

 

Use Case Example

Imagine you’re preparing to send a monthly newsletter via Odoo Email Marketing. You’ve added a newsletter sign-up form on your website footer.

  1. As users submit the form, they are added to the Newsletter mailing list.
  2. Using the Double Opt-in campaign, those contacts receive a confirmation email.
  3. Only those who click the confirmation link are added to the Confirmed contacts
  4. You now use this Confirmed list to send compliant, high-engagement newsletters.

Where to View Confirmed Contacts

Navigate to:

  • Email MarketingMailing ListsConfirmed contacts

Here, you’ll find all users who have explicitly confirmed their subscription.

You can also track campaign metrics and performance directly from the Marketing Automation campaign dashboard.

Conclusion

 

Implementing Double Opt-In in Odoo 18 is essential for:

  • Legal compliance
  • List hygiene
  • Better engagement

By using Odoo’s pre-configured Double Opt-in campaign, you can streamline consent collection and maintain a high-quality email marketing list.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Learn how we helped 100 top brands gain success