Mailgun is designed to be called directly from your application code, with an HTTP API and SMTP relay that fit into whatever stack you're already running.
- REST API and standard SMTP relay for sending mail from any language or platform
- Official SDKs for common languages including Python, PHP, Java, Node.js, Ruby, C#, and Go
- Event webhooks to notify your systems of deliveries, opens, clicks, bounces, and complaints as they happen
- A sandbox domain and test mode for building and validating integrations before sending from a verified domain
Use cases
Typical DevOps scenarios use Mailgun to automate testing and deployment of email features. Mailgun supports incident response and postmortems with event data.
- Automate domain verification steps in Mailgun
- Integrate Mailgun with CI CD for releases
- Instrument traces for email flows in Mailgun
- Set up staging environments with Mailgun
- Use dashboards for health monitoring in Mailgun
