Unsubscribe Mautic contacts from automated unsubscribe emails
Who is this for? This template is designed for businesses and organizations that use Mautic for email marketing and want to automate the process of removing ...
🔌 Nodes & Integrations Used (3)
📖 Implementation & Setup Guide
Who is this for? This template is designed for businesses and organizations that use Mautic for email marketing and want to automate the process of removing contacts from specific segments when they receive an unsubscribe request via email.
What problem is this workflow solving? / use case Many email recipients, especially those who are less tech-savvy, may not follow the standard unsubscribe link provided in emails. Instead, for example in Gmail, they click the "Unsubscribe" button in the Gmail web interface, which in turn sends an email with a consistent format, these emails contain the word unsubscribe in the 'To' field using the following structure:
**hello+unsubscribe_6629823aa976f053068426@example.com**
This workflow automates the process of identifying such unsubscribe emails and removing the contact from the relevant Mautic segments, ensuring compliance with unsubscribe requests and maintaining a clean mailing list.
What this workflow does
- Monitors a Gmail account for incoming emails.
- Identifies unsubscribe emails based on specific patterns in the "To" field (e.g., containing the word "unsubscribe").
- Retrieves the contact's ID from Mautic based on the email address.
- Removes the contact from the specified "newsletter" segment in Mautic.
- Adds the contact to the "unsubscribed" segment in Mautic.
- Sends a confirmation email to the contact, acknowledging their unsubscribe request.
Setup
- Configure your email address and unsubscribe message in the "Edit Fields" node.
- Set your credentials in the Gmail trigger and in the Mautic nodes.
- Set the segments for the "newsletter" and "unsubscribed" in the Mautic nodes.
- Make sure your n8n installation has a public endpoint for your Gmail trigger to work correctly.
- Deploy the workflow.
How to customize this workflow to your needs
- Adjust the conditions for identifying unsubscribe emails based on your specific requirements.
- Modify the segments or actions taken in Mautic according to your desired behavior.
- Customize the confirmation email message and sender details.
**Note:** This workflow assumes a consistent structure for unsubscribe emails, where the "From" field contains the word "unsubscribe" using the "+" sign. If your email provider follows a different convention, adjust the conditions in the "Is automated unsubscribe?" node accordingly.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Unsubscribe_Mautic_contacts_from_automated_unsubscribe_emails.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related Email & Outreach Workflows
View All in Email & Outreach →Abandoned cart recovery for Shopify via Gmail Google Sheets T
Who is this for? This template is ideal for solo store owners, eCommerce marketers, automation beginners, or anyone using Shopify and Gmail who wants to reco...
Add new leads in Lemlist from Airtable
This workflow allows you to add new leads in Lemlist from Airtable. !workflow-screenshot Airtable node: This node lists all the emails that are stored in you...
Add Subscriber and Send Email Campaign
Production-ready n8n automation template for Add Subscriber and Send Email Campaign built by AhiXLight. Seamlessly connects Sendy with 3 configured nodes.
Add new contacts from HubSpot to the email list in Mailchimp
This workflow adds new HubSpot contacts to the Mailchimp email list. Prerequisites - HubSpot account and HubSpot credentials - Mailchimp account and Mailchim...