Mailgun
API actions for the Mailgun integration.
Mailgun
Send and track emails with Mailgun.
Get domain stats
Get summary statistics for email events, such as delivered or opened, on your Mailgun domain.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
event | string | Yes | The email event to report on, for example delivered or opened. |
start_date | string | Yes | Start date (YYYY-MM-DD). |
end_date | string | Yes | End date (YYYY-MM-DD). |
resolution | string | No | Optional grouping for the results, such as hour, day, or month. |
Response
{
"stats": {}
}Send an email
Send a plain text or HTML email through a Mailgun sending domain.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from_email | string | Yes | Sender email address (must belong to the Mailgun domain). |
to | string | Yes | Recipient email address or comma-separated list. |
subject | string | Yes | Subject line for the email. |
text | string | Yes | Plain text body. |
html | string | No | Optional HTML version of the email body. |
cc | string | No | Optional CC recipients (comma-separated). |
bcc | string | No | Optional BCC recipients (comma-separated). |
Response
{
"result": {}
}