Blocks
Mailgun
Powerful email API service for sending, receiving, and tracking emails.
Integrate with Mailgun to send transactional emails, manage mailing lists, track email performance, and handle inbound email routing. Mailgun is a developer-focused email service used by thousands of companies to send billions of emails with powerful APIs, flexible webhooks, and detailed analytics.
Block Preview
Mailgun
Powerful email API service for sending, receiving, and tracking emails.
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the mailgun block with monitoring enabled in production.
Inputs (UI)
Mailgun API Key
short-inputPlaceholder: Enter your Mailgun private API key
Layout: full
Domain
short-inputPlaceholder: mg.yourdomain.com
Layout: full
Region
dropdownLayout: full
Options: US, EU
Operation
dropdownLayout: full
Options: Send Email, Send Batch Emails, Validate Email, Get Stats
From
short-inputPlaceholder: sender@yourdomain.com
Layout: half
Condition: operation = ["send_email","send_batch"]
To
short-inputPlaceholder: recipient@example.com
Layout: half
Condition: operation = ["send_email","validate_email"]
Subject
short-inputPlaceholder: Email subject
Layout: full
Condition: operation = ["send_email","send_batch"]
Text Body
long-inputPlaceholder: Plain text email body
Layout: full
Condition: operation = ["send_email","send_batch"]
HTML Body
codePlaceholder: <html><body>HTML email content</body></html>
Layout: full
Condition: operation = ["send_email","send_batch"]
Recipient Variables (JSON)
codePlaceholder: {"user@example.com": {"name": "John", "id": "123"}}
Layout: full
Condition: operation = "send_batch"
Inputs (API)
credential
stringRequired
domain
stringRequired
region
stringOptional
operation
stringRequired
from
stringOptional
to
stringOptional
subject
stringOptional
text
stringOptional
html
stringOptional
recipientVariables
jsonOptional
Outputs
Primary response type:
{
"data": "json"
}