Mailgun

Send an email with Mailgun.

v1.0.0Source

Install

Send emails with Mailgun, with text, HTML, attachments, tags, tracking, templates, and scheduled delivery, and start a workflow on a Mailgun event such as delivered, opened, clicked, or failed. Use it for transactional and bulk email.

Mailgun@zerodot/mailgunInstall
  1. Open System, then Nodes.
  2. Find Mailgun and click Install.
  3. Use the new nodes at once. You do not restart.

How it works

Mailgun (mailgun.api) is an action node in the Mailgun package (@zerodot/mailgun): Send an email with Mailgun.

One operation: Send Email. The fields are:

  • From Email, To Email, CC Email, BCC Email: separate many addresses with commas. A name is possible: Nathan Doe <nate@example.com>
  • Subject, Text, HTML
  • Attachments: the names of the binary properties that have the files, with commas between

Options:

  • Reply To
  • Tags: at most 3, with commas between
  • Delivery Time: send the message later (o:deliverytime)
  • Tracking, Click Tracking, Open Tracking: the default is the setting of the domain
  • Test Mode: Mailgun accepts the message but does not deliver it
  • Require TLS
  • Custom Headers and Custom Variables: JSON objects. Mailgun adds h: and v: to the names
  • Template, Template Version, Template Variables: use a stored template. Then Text and HTML are optional

The node sends a multipart/form-data request to /v3/<Email Domain>/messages. The output is the answer of Mailgun: id and message. When Mailgun gives an error, the node fails with the status, the message, and a short help text. A rate limit (HTTP 429) gives the time to wait from Retry-After.

Logins it can use

Mailgun API (mailgun.apiKey):

  • apiDomain: api.mailgun.net (US) or api.eu.mailgun.net (EU)
  • emailDomain: your sending domain, such as mg.example.com
  • apiKey: secret. Mailgun uses it as the Basic auth password with the user api
  • webhookSigningKey: secret and optional. Only the trigger needs it. Find it in the Mailgun dashboard, under Sending > Webhooks, as the HTTP webhook signing key

The Test button reads the information of the domain.

Guides and related hubs