How to send email with Mandrill
How to send transactional email notifications to Mandrill with Knock.
Knock integrates with Mandrill to send email notifications to your users. This page describes how to get started with Mandrill in Knock, including necessary provider configurations and additional data you can pass through to Mandrill.
Features
#- Attachments support
- Delivery tracking
- Knock link and open tracking
- Mandrill link and open tracking
- Per environment configuration
- Sandbox mode
Getting started
#You can create a new Mandrill channel in the dashboard under the Channels and sources page in your account settings. From there, you'll need to configure the channel for each environment you have.
Channel configuration
#Configure the following settings per environment. Navigate to Channels and sources in your dashboard account settings and select your Mandrill channel. Under Environment configurations, click the environment you'd like to configure to expand its settings, then click "Save changes" when you're done. Expand Advanced for additional options, including overrides and conditions.
Additional data sent
#Knock sends the following attributes along with your emails:
metadata.knock_message_id: the ID of the message this email is associated withmetadata.knock_recipient_id: the Knock ID of the recipient this email is being sent to
Recipient data requirements
#In order to send an email notification you'll need a valid email property set on your recipient.