Send emails via Mailgun from Airplane runbooks.
The Mailgun resource allows runbooks to send emails via Mailgun. For a high-level introduction to resources, see the resources page.
Creating a Mailgun resource
To create a new Mailgun resource, visit resources for your team, click the "new" button, and select the Mailgun resource type. Enter your connection details in the form:
Name should be a human-readable name for your resource.
API Key should be a Mailgun Domain Sending key. If you don't already have one, create one by following this Mailgun guide.
Domain should be the domain that your API key is associated with.
Accessing from runbooks
You can use your Mailgun resource in runbooks by adding an email block.
When this resource is attached to a task, its fields are available in the JSON environment variable
AIRPLANE_RESOURCESunder the alias it was attached with. The available fields are documented below.
The ID of the resource.
The slug of the resource as defined in the resource settings page.
The name of the resource.
The kind of the resource.
The Mailgun API key.
The configured Mailgun domain.