Home  /  Integrations  /  Mailgun
Integration

Automate with Mailgun

Mailgun handles high-volume transactional email for applications and platforms. NVS automates the trigger logic, personalizes the content, and routes bounce and event data to where it needs to go.

Use Cases

01

Application Event Triggers Transactional Email

When a user completes a key in-app action — trial start, password reset, or account upgrade — the correct transactional email is dispatched via Mailgun automatically.

Trigger
App Event Webhook
webhook.receive
Webhook fires from your application on key user actions.
Identify Event Type
nvs.set
Event type extracted: trial_start, upgrade, password_reset.
Switch
Event Type
nvs.switch
Routes to the correct email template path.
Trial Start
Output
Send Welcome Email
mailgun.send
Welcome email dispatched via Mailgun with onboarding instructions.
Upgrade
Output
Send Upgrade Confirmation
mailgun.send
Confirmation email sent with new plan details and receipt.
Password Reset
Output
Send Reset Link
mailgun.send
Secure password reset email dispatched with time-limited link.
02

Hard Bounce Handler

When Mailgun reports a hard bounce, the contact is immediately suppressed in Mailgun, flagged in HubSpot, and the deliverability team is notified in Slack.

Trigger
Hard Bounce Event
mailgun.webhook
Mailgun webhook fires on permanent delivery failure.
Suppress in Mailgun
mailgun.suppress
Email address added to the Mailgun suppression list.
Update HubSpot Contact
hubspot.update
Contact email marked invalid. Do Not Contact flag set.
Output
Alert #deliverability
slack.message
Slack notification: bounced address, domain, and bounce reason logged.
03

Daily Delivery Report to Sheets

Every morning, Mailgun send, open, click, and bounce stats from the previous day are fetched and appended to a Google Sheets deliverability tracker.

Trigger
Daily 7am
schedule.cron
Runs every morning to capture yesterday's sending stats.
Fetch Mailgun Stats
mailgun.stats
Sends, deliveries, opens, clicks, and bounces fetched for yesterday.
Format Row
nvs.set
Stats formatted into a single row with date and campaign name.
Output
Append to Sheets
google.sheets
Row appended to the deliverability tracking sheet.

Ready to automate Mailgun?

We'll map your workflow, connect your tools, and build it in days, not months.

Book a Free Strategy Call →