Mailgun

App · Email · 2 actions

Send and track emails with Mailgun.

Get domain stats

Get summary statistics for email events, such as delivered or opened, on your Mailgun domain. Requires a full-access account API key; a domain-restricted Sending key cannot read stats.

Inputs

EventeventtextRequired
The email event to report on.One of: accepted, delivered, failed, opened, clicked, unsubscribed, complained, stored.
Start datestart_datetextRequired
Start date (YYYY-MM-DD).
End dateend_datetextRequired
End date (YYYY-MM-DD).
Group results byresolutiontext
Optional grouping for the results.One of: hour, day, month.

Outputs

statsobject
Stats details.
Example output
{
  "stats": {}
}

Send an email

Send a plain text or HTML email through a Mailgun sending domain.

Inputs

From emailfrom_emailtextRequired
Sender email address (must belong to the Mailgun domain).
TototextRequired
Recipient email address or comma-separated list.
SubjectsubjecttextRequired
Subject line for the email.
Body (plain text)texttextRequired
Plain text body.
Body (HTML)htmltext
Optional HTML version of the email body.
CCcctext
Optional CC recipients (comma-separated).
BCCbcctext
Optional BCC recipients (comma-separated).

Outputs

resultobject
Result details.
Example output
{
  "result": {}
}

On this page