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.
|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
- Create a new webhook on the endpoint you want to trigger the webhook.
- Select the input type as Message.
- Select Mailgun as the provider.
- Enter the trigger URL and the message body to be sent.
- 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.