Using Zapier Postmark Triggers
Postmark offers three “triggers” on Zapier which are events that are caused by Postmark on the Zapier system. This means that Postmark has sent data to Zapier based on something that happened at Postmark such as receiving a new inbound message, capturing a bounced email, or receiving a new message open.
Zapier lists over 300 integrations on their system which means it’s possible to connect Postmark and arrange to perform an almost unlimited number of tasks with your data.
Choose a Postmark Trigger
The first thing you’ll need to do when connecting your Zapier account to Postmark, is to choose which Postmark trigger you’d like to capture. In this example, let’s capture the New Inbound Message trigger.
Choosing an Action
Next, let’s choose an action for our Inbound data to get sent to. There are dozens of ways we can use the details and content from the Inbound message. For example, let’s post a message in a Slack channel based on the information in the message.
Connecting Your Postmark Server
When choosing a Postmark Server to connect to Zapier, you will be asked for your X-Postmark-Server-Token. This is located under the API Tokens tab in your Postmark Server. Paste the API token as instructed. Zapier will confirm the token and your Postmark server will then be connected to Zapier.
Updating Your Postmark Settings
Zapier will generate a unique webhook URL for you to add to your Postmark Inbound settings. To add the URL:
- Go to the Inbound Settings for your Postmark Server.
- Input the URL in Inbound Settings, and Save Changes.
- Confirm the URL is correct by selecting Check. The check will send a webhook call to Zapier triggering a confirmation within Zapier that your Postmark Inbound settings were updated correctly.
Map Fields to Slack
Back in Zapier, make the connection to your Slack account. Then you can map fields from the inbound message from Postmark to fields in the Slack integration. You can mix ad-hoc text with the fields to customize your integration. For example, in the screenshot below we’ve customized the description field with ad-hoc text. We can then add fields to the message text field as needed.
Once the integration is confirmed by Zapier, it will be activated. Each time an Inbound email is sent to the address associated with the Postmark server that is setup with the integration, a new post will be made in the Slack channel automatically.
Other Postmark Triggers
Postmark includes two other triggers that send data to Zapier, the Bounce Hook and the Opens Hook. The Bounce Hook will send data to a web hook for each bounce received. Likewise, the Opens Hook will send data for each message that is setup for open tracking. You can use any of the actions provided by other Zapier providers and integrations to channel the data from these hooks as needed.