Email
Postmark

How to send email with Postmark

How to send transactional email notifications to Postmark with Knock.

Knock integrates with Postmark to send email notifications to your users.

In this guide you'll learn how to get started sending transactional email notifications with Postmark through Knock. We also cover provider configuration and additional data you can pass through to Postmark.

Features

  • Attachments support
  • Delivery tracking
  • Bounce Support
  • Knock link and open tracking
  • Postmark link and open tracking
  • Per environment configuration
  • Sandbox mode

Getting started

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

Channel configuration

The following channel settings should be configured per environment. Navigate to Integrations > Channels in your dashboard, select your Postmark channel, then click "Manage configuration" under the environment that you'd like to configure.

Fields marked with an * are required.

Knock settings

Sandbox modeboolean
Whether to enable sandbox mode for your Postmark channel.
Knock open trackingboolean
Whether to enable Knock email-open tracking.
Knock link trackingboolean
Whether to enable Knock link-click tracking.

Provider settings for Postmark

API keystring*
The API key for your Postmark server.
Open trackingboolean
Whether to enable Postmark email-open tracking.
Link trackingboolean
Whether to enable Postmark link-click tracking.
From email addressstring | liquid*
The default sender email address (can use Liquid tags).
From namestring | liquid
The default sender name (can use Liquid tags).

When configured, these optional overrides will apply to all emails sent from this channel in the configured environment. Learn more about email channel overrides here.

Tostring | liquid
The To email address that email notifications will be sent to (can use Liquid tags). This value will override the designated recipient's email address.
Ccstring | liquid
The CC email address that email notifications will be sent to (can use Liquid tags).
Bccstring | liquid
The BCC email address that email notifications will be sent to (can use Liquid tags).
Reply-tostring | liquid
The reply-to email address that will be included on email notifications (can use Liquid tags).
Payload overridesJSON (string) | liquid
Provide a JSON object to merge into the API payload that is sent to the downstream provider.

Set optional per-environment conditions for this channel. These conditions are evaluated each time a workflow run encounters a step that uses this channel in the configured environment. If the conditions are not met, the step will be skipped.

Additional data sent

Knock sends the following attributes along with your emails:

  • Metadata.sender: always set to knock.app
  • Metadata.knock_message_id: the ID of the message this email is associated with
  • Metadata.knock_recipient_id: the Knock ID of the recipient this email is being sent to
  • Tag: the key of the workflow this message was generated from

You can learn about the role of these Postmark attributes in the Postmark API documentation.

Recipient data requirements

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

Delivery tracking

Delivery tracking for Postmark can result in the following status updates to your message:

  • The message delivery is confirmed and Knock updates the message to delivered
  • The message was not delivered due to bad recipient(s) and Knock updates the message to bounced