Mailgun

THIS PAGE
Mailgun Settings
Creating a Mailgun webhook

You can send a message on Mailgun based on a dynamic template that you define. The message is sent whenever the webhook is triggered.

For example: Send a message to Mailgun whenever a new entry is created in your Leads table on Canonic.

Mailgun is a message type webhook. To create one, select your input type as Message when creating a webhook.

Mailgun Settings

Property Description
Domain The Mailgun domain for which the webhook will be triggered.
API Key The API Key for Mailgun. The API key should have sufficient permissions to trigger the webhook
Send Email From The email address from which the email will be sent. Must be a verified Mailgun email address.
Send Email To The emaill address to which the email will be sent. You can use handlebar variables to refer to the data for the endpoint which triggered the webhook.
Email Subject The email subject
Email Body The content for the email that would be sent through Mailgun on the trigger url.

It's a handlebars template so you can refer to the data from which the endpoint was triggered. You can also access any previous webhook's data. You can read more about the available variables here

Creating a Mailgun webhook

  1. Create a new webhook on the endpoint you want to trigger the webhook.
  2. Select the input type as Message.
  3. Select Mailgun as the provider.
  4. Enter the trigger URL and the message body to be sent.
  5. Close the properties panel to save your changes.

The webhook will be triggered whenever the endpoint you attached it to is triggered.

You can receive the result of this webhook in the extensions field by enabling the wait for webhooks options in the Endpoint properties.

Did you find what you were looking for?
👍
👎
What went wrong?
Need more help?We have a thriving Discordcommunity that can help you with all things Canonic. →