
MANDRILL n8n INTEGRATION: AUTOMATE MANDRILL WITH N8N
MANDRILL N8N INTEGRATION: AUTOMATE MANDRILL WITH N8N
Need help automating Mandrill with n8n?
Our team will get back to you in minutes.
Why automate Mandrill with n8n?
The Mandrill n8n integration gives you access to 2 actions designed to handle your transactional email needs: sending custom HTML emails and dispatching template-based messages with dynamic personalization. This means you can build sophisticated email automation workflows that respond instantly to events happening across your entire tech stack.
Significant time savings stand out as the primary benefit. Instead of manually triggering emails or writing custom scripts to interact with Mandrill's API, you configure your workflow once and let it run. Order placed in your e-commerce platform? Confirmation email sent automatically. User signs up? Welcome sequence initiated without delay. Support ticket resolved? Customer notified in seconds. These automations eliminate repetitive tasks and free your team to focus on higher-value work.
Improved responsiveness transforms your customer communications. Transactional emails are time-sensitive by nature—a password reset link needs to arrive immediately, not minutes later. With n8n orchestrating your Mandrill actions, emails fire the moment triggering conditions are met. Seamless integration ties everything together: connect Mandrill to over 400 applications in n8n's ecosystem, from CRMs like HubSpot and Salesforce to databases, webhooks, and custom APIs. Imagine automatically sending a personalized HTML recap after a Calendly meeting, or dispatching a template-based invoice when a Stripe payment succeeds. The possibilities multiply with every connection you add.
How to connect Mandrill to n8n?
! 1 stepHow to connect Mandrill to n8n?
- 01
Add the node
Connecting Mandrill to n8n requires an API Key that you'll generate from your Mandrill account. This authentication method is straightforward and secure, giving n8n the permissions needed to send emails on your behalf.Basic configuration:Access your Mandrill settings: Log into your Mandrill account at mandrillapp.com, navigate to "Settings", then click on "SMTP & API Info" in the left sidebar.Generate a new API key: Click "New API Key", give it a descriptive name (e.g., "n8n Integration"), and copy the generated key immediately—you won't be able to see it again.Add the credential in n8n: In your n8n instance, go to "Credentials" → "New Credential" → search for "Mandrill". Paste your API key in the designated field.Test the connection: Click "Test" to verify n8n can successfully authenticate with Mandrill. A green confirmation message indicates you're ready to build workflows.Select the credential in your node: When adding a Mandrill node to any workflow, choose your newly created credential from the "Credential to connect with" dropdown.
TIP💡 TIP: Create a dedicated API key specifically for n8n rather than reusing keys from other integrations. This practice makes it easier to revoke access if needed and helps you track API usage by source in Mandrill's analytics dashboard.- 01
Need help automating Mandrill with n8n?
Our team will get back to you in minutes.
Mandrill actions available in n8n
01 Action 01Send HTML
The Send HTML action allows you to compose and dispatch fully customized HTML emails directly through Mandrill's reliable delivery infrastructure. This action is ideal when you need complete control over email content, formatting, and design without relying on pre-built templates.
Key parameters for configuration:
- Credential to connect with: Required dropdown to select your authenticated Mandrill account. Ensure you've set up your API key credentials beforehand.
- Resource: Set to "Message" to indicate you're working with email messages. This is required and pre-selected.
- Operation: Dropdown set to "Send HTML" to specify this particular action. Required field.
- From Email: Text field for the sender's email address. Must be a valid email format, typically including a display name (e.g., "Admin <example@yourdomain.com>"). Required and must match a verified sending domain in Mandrill.
- To Email: Text field for the recipient's email address. Accepts fixed values or dynamic expressions pulled from previous workflow nodes. Required.
- JSON Parameters: Toggle switch to enable or disable sending additional parameters as a JSON object. Off by default.
- Options: Expandable section for adding optional properties like CC, BCC, subject line, HTML content body, tracking settings, and metadata tags.
- Merge Vars: Section for adding merge variables that enable dynamic content personalization within your HTML email body.
Practical use cases:
- Custom order confirmations: Pull order details from your WooCommerce store and inject them into a styled HTML email with product images, prices, and shipping information.
- Personalized reports: Generate weekly analytics summaries with dynamically inserted metrics, charts, and recommendations tailored to each recipient.
- Event-driven notifications: Send real-time alerts with custom formatting when critical events occur—inventory drops, payment failures, or system errors.
This action shines when you need maximum flexibility in email design and content. Since you're building the HTML directly (or dynamically generating it from previous nodes), you're not constrained by template structures. Combine with n8n's HTTP Request node to fetch external data, or use the Code node to programmatically construct sophisticated HTML layouts before passing them to Mandrill.

02 Action 02Send Template
The Send Template action leverages Mandrill's powerful template system to send professionally designed emails with dynamic content insertion. Instead of building HTML from scratch, you reference a pre-configured template stored in your Mandrill account and pass merge variables to personalize each message.
Key parameters for configuration:
- Credential to connect with: Required dropdown to select your Mandrill account credential for authentication.
- Resource: Set to "Message" to work with email messages. Required.
- Operation: Dropdown set to "Send Template" to use template-based sending. Required.
- Template Name or ID: Text field or dropdown where you specify which Mandrill template to use. Enter the exact template slug or select from the loaded list. If you see "Error fetching options from Mandrill", verify your API key has proper permissions or enter the template name manually.
- From Email: Text field for sender email address with display name support (e.g., "Admin <example@yourdomain.com>"). Required.
- To Email: Text field for recipient email address. Supports expressions for dynamic recipient selection. Required.
- JSON Parameters: Toggle to enable JSON-formatted parameter input for advanced configurations. Off by default.
- Options: Section for additional optional properties like subject line override, tracking configurations, metadata, and scheduling options.
- Merge Vars: Critical section for adding template merge variables. These correspond to the *|VARIABLE_NAME|* placeholders in your Mandrill template and enable personalization at scale.
Practical use cases:
- Welcome email sequences: Trigger a branded welcome template when new users sign up, automatically inserting their first name, account details, and personalized onboarding links.
- Invoice delivery: Send professional invoice templates with dynamically populated line items, totals, due dates, and payment links pulled from your billing system.
- Appointment reminders: Dispatch consistent reminder emails with meeting details, calendar links via Google Calendar integration, and preparation instructions personalized for each attendee.
This action is perfect when you want design consistency across communications while maintaining the flexibility of dynamic content. Your marketing or design team can manage templates directly in Mandrill's interface—adjusting layouts, colors, and copy—without touching your n8n workflows. The merge variables bridge the gap, letting you inject real-time data from any source in your automation chain. Use this approach for any recurring email type where brand consistency matters: receipts, shipping notifications, subscription updates, and more.

Build your first workflow with our team
Drop your email and we'll send you the catalog of automations you can ship today.
- Free n8n & Make scenarios to import
- Step-by-step setup docs
- Live cohort + community support
Frequently asked questions
Is the Mandrill n8n integration free to use?
The n8n integration itself is free—n8n is open-source and the Mandrill nodes come built-in with no additional cost. However, you'll need an active Mandrill account, which requires a paid Mailchimp subscription (Mandrill is available as an add-on). Mandrill pricing is based on email volume, starting with a block of credits. Your n8n hosting costs depend on whether you self-host (free, minus server costs) or use n8n Cloud or our n8n agency services. So while connecting the two platforms costs nothing extra, both services have their own pricing structures to consider.Can I send emails with attachments using Mandrill in n8n?
Yes, you can send attachments through the Mandrill n8n integration by utilizing the Options section in both Send HTML and Send Template actions. You'll need to provide attachment data in the appropriate format—typically base64-encoded content with filename and MIME type specified. For workflow efficiency, use n8n's built-in nodes to read files, convert them to base64, and pass that data to the Mandrill node. This works well for sending invoices, reports, or any documents generated earlier in your automation flow. You can also store attachments in Google Sheets or Dropbox before processing them.How do I troubleshoot "Error fetching options from Mandrill" in the Send Template action?
This error typically indicates an authentication or permission issue. First, verify your API key is correctly entered in your n8n credentials and test the connection. If authentication succeeds but templates won't load, check that your Mandrill account actually has templates created—an empty template library will show this error. You can bypass the dropdown entirely by manually typing your template's slug (found in Mandrill under "Outbound" → "Templates"). Also ensure your API key has full access permissions, not restricted sending-only access. If issues persist, regenerate your API key and update the credential in n8n. For complex troubleshooting scenarios, consult our n8n troubleshooting guide or the official n8n Mandrill documentation.



