KnockDocs

How to send email with Mailgun

Knock integrates with Mailgun to send emails to your recipients.

Features

  • Attachments support
  • Delivery tracking
  • Link and open tracking
  • Per environment configuration
  • Sandbox mode

Getting started

You can create a new Mailgun channel in the dashboard under the "Channels" section. From there, you'll need to configure the channel for each environment you have.

Provider configuration

API keystring*The public API key for your Mailgun account
Domainstring*The sending domain for your Mailgun account
Regionenum*The sending region (US or EU) for your Mailgun account
Open trackingbooleanShould the provider track opens on their service?
Link trackingbooleanShould the provider track link clicks on their service?
From email addressstring | liquid*The sender email address (can use Liquid tags)
From namestring | liquidThe sender name (can use Liquid tags)

Environment default settings

The following fields are optional and if set, will be applied to all email message sent via this channel within the environment:

Reply to addressstring | liquidThe reply-to email address (can use Liquid tags)
CC addressstring | liquidThe cc email address (can use Liquid tags)
BCC addressstring | liquidThe bcc email address (can use Liquid tags)

Additional data sent

Knock sends the following attributes along with your emails:

  • v:sender: always set to knock.app
  • v:knock_message_id: set to the message ID for the message being sent
  • o:tag: the workflow key for the workflow being invoked

Recipient data requirements

In order to send an email notification you'll need a valid email property set on your recipient.