PHPackages                             nswdpc/silverstripe-mailgun-sync - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. nswdpc/silverstripe-mailgun-sync

ActiveSilverstripe-vendormodule[Mail &amp; Notifications](/categories/mail)

nswdpc/silverstripe-mailgun-sync
================================

Send messages via Mailgun and synchronise with Mailgun Events API.

v2.1.0(1y ago)17.0k↓50%3[2 PRs](https://github.com/nswdpc/silverstripe-mailgun-sync/pulls)1BSD-3-ClausePHPCI failing

Since Oct 17Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/nswdpc/silverstripe-mailgun-sync)[ Packagist](https://packagist.org/packages/nswdpc/silverstripe-mailgun-sync)[ Docs](https://github.com/nswdpc/silverstripe-mailgun-sync)[ RSS](/packages/nswdpc-silverstripe-mailgun-sync/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (30)Used By (1)

Silverstripe Mailgun Mailer, Messaging and Webhook handling
===========================================================

[](#silverstripe-mailgun-mailer-messaging-and-webhook-handling)

This module provides functionality to send emails via the Mailgun API and store events related to messages using Mailgun's webhooks feature

Requirements
------------

[](#requirements)

See [composer.json](./composer.json)

- silverstripe/framework ^5
- Symbiote's [Queued Jobs](https://github.com/symbiote/silverstripe-queuedjobs) module
- Mailgun PHP SDK ^4, kriswallsmith/buzz, nyholm/psr7

Installing
----------

[](#installing)

```
composer require nswdpc/silverstripe-mailgun-sync
```

### Mailgun configuration

[](#mailgun-configuration)

You need:

- A Mailgun account
- At least one non-sandbox Mailgun mailing domain ([verified is best](https://documentation.mailgun.com/en/latest/user_manual.html#verifying-your-domain)) in your choice of region
- A Mailgun API key or a [Mailgun Domain Sending Key](https://www.mailgun.com/blog/mailgun-ip-pools-domain-keys) for the relevant mailing domain (the latter is recommended)
- The correct configuration in your project (see below)

Configuration
-------------

[](#configuration)

See [Getting Started](./docs/en/001-index.md)

Error handling
--------------

[](#error-handling)

Email send errors will throw an exception, catch these exceptions to handle transport errors.

Breaking changes
----------------

[](#breaking-changes)

### 2.0+ release

[](#20-release)

This version refactored the module to support the `silverstripe/framework` change to using `symfony/mailer` and is not backwards compatible with previous versions. When updating your project, be aware of the following changes:

- Configuration is done via a symfony mailer DSN, either in project yml or environment variable
- MailgunMailer was removed, almost all functionality was moved to the `MailgunSyncApiTransport`
- Namespace updates to reflect psr-4
- The `api_domain`, `api_key` and `api_endpoint_region` configuration values were removed (see DSN)
- Default recipient handling was removed
- 'Always from' handling was removed, Email.send\_all\_emails\_from is now the only way to do this
- All client connectors that extend `Base` must now provide a `Dsn` or a string that a `Dsn` can be created from:

### 1.0 release

[](#10-release)

Version 1 removed unused features to reduce the complexity of this module.

The core functionality is now:

- Send messages via the standard Email process in Silverstripe, with added Mailgun options
- Send messages directly via the API
- Handle webhook requests from Mailgun via a dedicated controller

Synchronisation of events is now handled by the [webhooks controller](./docs/en/100-webhooks.md)

LICENSE
-------

[](#license)

BSD-3-Clause

See [LICENSE](./LICENSE.md)

Maintainers
-----------

[](#maintainers)

- PD Web Team

Bugtracker
----------

[](#bugtracker)

We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.

Please review the [code of conduct](./code-of-conduct.md) prior to opening a new issue.

Security
--------

[](#security)

If you have found a security issue with this module, please email digital\[@\]dpc.nsw.gov.au in the first instance, detailing your findings.

Development and contribution
----------------------------

[](#development-and-contribution)

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

Please review the [code of conduct](./code-of-conduct.md) prior to completing a pull request.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance52

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 96.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~136 days

Recently: every ~0 days

Total

21

Last Release

403d ago

Major Versions

v0.3.1 → v1.02020-10-23

v1.1.0-rc1 → v2.0.02025-04-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/1caefd99092b4a43254e48c40347224f671032ec1ffc3a457e06a7e9ab6e7c02?d=identicon)[nswdpc](/maintainers/nswdpc)

---

Top Contributors

[![JamesDPC](https://avatars.githubusercontent.com/u/69664712?v=4)](https://github.com/JamesDPC "JamesDPC (240 commits)")[![tardinha](https://avatars.githubusercontent.com/u/457209?v=4)](https://github.com/tardinha "tardinha (5 commits)")[![dizzystuff](https://avatars.githubusercontent.com/u/576903?v=4)](https://github.com/dizzystuff "dizzystuff (3 commits)")[![s-kerdel](https://avatars.githubusercontent.com/u/49479846?v=4)](https://github.com/s-kerdel "s-kerdel (1 commits)")

---

Tags

apiemailmailgunmessagephpsilverstripewebhookmailmimeemailsilverstripemailgun

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nswdpc-silverstripe-mailgun-sync/health.svg)

```
[![Health](https://phpackages.com/badges/nswdpc-silverstripe-mailgun-sync/health.svg)](https://phpackages.com/packages/nswdpc-silverstripe-mailgun-sync)
```

###  Alternatives

[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28160.6k](/packages/boundstate-yii2-mailgun)[yarcode/yii2-mailgun-mailer

Mailgun mailer implementation for Yii2

1576.0k](/packages/yarcode-yii2-mailgun-mailer)[baibaratsky/php-mailgun

Mailgun API PHP library and Yii extension (as well as Yii2)

3224.6k](/packages/baibaratsky-php-mailgun)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
