Lodol Docs

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

ParameterTypeRequiredDescription
eventstringYesThe email event to report on, for example delivered or opened.
start_datestringYesStart date (YYYY-MM-DD).
end_datestringYesEnd date (YYYY-MM-DD).
resolutionstringNoOptional 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

ParameterTypeRequiredDescription
from_emailstringYesSender email address (must belong to the Mailgun domain).
tostringYesRecipient email address or comma-separated list.
subjectstringYesSubject line for the email.
textstringYesPlain text body.
htmlstringNoOptional HTML version of the email body.
ccstringNoOptional CC recipients (comma-separated).
bccstringNoOptional BCC recipients (comma-separated).

Response

{
  "result": {}
}

On this page