Skip to main content
SendPost’s Mailgun integration allows you to use your existing Mailgun account as a Third-Party Sending Provider (TPSP). This means you can:
  • Send emails through Mailgun while using SendPost’s unified API
  • Receive and process Mailgun events (opens, clicks, bounces, etc.) in SendPost
  • View all email analytics in one centralized dashboard
  • Apply SendPost’s intelligent routing and throttling to your Mailgun traffic

Why Use Mailgun with SendPost?

FeatureMailgun AloneMailgun + SendPost
Multiple ESP management✅ Unified dashboard for all providers
Cross-provider analytics✅ Compare performance across ESPs
Advanced throttlingBasic✅ Per-provider rate limiting (Gmail, Yahoo, etc.)
Failover routing✅ Automatic fallback to other providers
Centralized event logs✅ All events in one place
Sub-account managementLimited✅ Flexible sub-account hierarchy

What’s Covered in This Guide

Setting Up

Configure Mailgun as a provider in SendPost with automatic webhook setup

Sending Emails

Send emails through Mailgun using the SendPost API with IP Pool routing

Event Types

Understand Mailgun event types and how they map to SendPost

Analytics

Track opens, clicks, bounces and configure rate limiting

Troubleshooting

Common issues, FAQs, and getting help

Quick Reference

Key Endpoints

PurposeURL
Send EmailPOST /api/v1/subaccount/email/
View EventsSendPost Dashboard → Events

Setup Checklist

1

Create Mailgun API Key

Create API key with full access permissions in your Mailgun account
2

Add Provider

Add Mailgun provider in SendPost dashboard with your API key and domain
3

Configure IP Pool

Create an IP Pool in SendPost configured to route traffic to Mailgun
4

Whitelist Domain

Whitelist your sending domain in SendPost (same domain used in Mailgun)
5

Test

Send a test email with the ippool parameter
6

Confirm Events

Confirm events appear in SendPost analytics