PHPackages                             micschk/silverstripe-mailer-mailgun - 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. micschk/silverstripe-mailer-mailgun

Abandoned → [lekoala/silverstripe-mailgun](/?search=lekoala%2Fsilverstripe-mailgun)Silverstripe-module[Mail &amp; Notifications](/categories/mail)

micschk/silverstripe-mailer-mailgun
===================================

SilverStripe Mailer for sending mail via the Mailgun API

1.0.4(9y ago)12.8k1[2 issues](https://github.com/micschk/silverstripe-mailgun-mailer/issues)BSD-3-ClausePHPPHP &gt;=5.4

Since Jul 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/micschk/silverstripe-mailgun-mailer)[ Packagist](https://packagist.org/packages/micschk/silverstripe-mailer-mailgun)[ RSS](/packages/micschk-silverstripe-mailer-mailgun/feed)WikiDiscussions main Synced 2mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

SilverStripe Mailer for sending mail via the Mailgun API
========================================================

[](#silverstripe-mailer-for-sending-mail-via-the-mailgun-api)

This module lets you send SilverStripe emails through the [official Mailgun PHP library](https://github.com/mailgun/mailgun-php), falling back to PHP's built-in `sendmail()` if Mailgun is unreachable.

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

[](#requirements)

- PHP 5.4+
- SilverStripe ~3.1
- [Mailgun-PHP](https://github.com/mailgun/mailgun-php)
- (optional) set up a manual cron task, or use silverstripe-crontask or silverstripe-queuedjobs(?) to keep log synced

Installation
------------

[](#installation)

Install with Composer. [Learn how](https://docs.silverstripe.org/en/getting_started/composer/#adding-modules-to-your-project)

```
composer require "micschk/silverstripe-mailer-mailgun:~1.0"

```

Documentation
-------------

[](#documentation)

You will need to provide a Mailgun API key for a verified domain that you have set up in your [Mailgun account](https://mailgun.com/app/domains/).

Also, if you want to synchronize the Mailgun log, you will need to set up some way to run/ Mailgun\_SyncLogTask::poll() every not and then. This gets the Mailgun events log from the API and saves it to the local database so you can see when messages got sent, openend and/or bounced etc.

Example configuration
---------------------

[](#example-configuration)

In your project's `_config/config.yml` file:

```
MailgunMailer:
  api_key: 'key-goes-here'
  api_domain: 'verified-domain'
```

In your project's `_config.php` file:

```
Injector::inst()->registerService(new MailgunMailer(), 'Mailer');
```

or:

```
// Send email through Mailgun in live environment only
if (Director::isLive()) {
	Injector::inst()->registerService(new MailgunMailer(), 'Mailer');
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~0 days

Total

5

Last Release

3600d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3680d6353e5f171543435b89965ba2588186ad7ec0ec97cbf572704fec2a4f?d=identicon)[micschk](/maintainers/micschk)

---

Top Contributors

[![micschk](https://avatars.githubusercontent.com/u/1005986?v=4)](https://github.com/micschk "micschk (18 commits)")[![dylanitorium](https://avatars.githubusercontent.com/u/10807795?v=4)](https://github.com/dylanitorium "dylanitorium (1 commits)")[![jonom](https://avatars.githubusercontent.com/u/1079425?v=4)](https://github.com/jonom "jonom (1 commits)")

---

Tags

emailsilverstripemailermailgun

### Embed Badge

![Health badge](/badges/micschk-silverstripe-mailer-mailgun/health.svg)

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

###  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)[markguinn/silverstripe-email-helpers

Silverstripe extension containing SMTP mailer class and some other classes for HTML emails

3145.4k1](/packages/markguinn-silverstripe-email-helpers)[camfindlay/apes

The Automated Provision of Email Services (APES) module will allow you to set up an automated sync mechanism between the SilverStripe Member DataObject and MailChimp.

122.6k](/packages/camfindlay-apes)

PHPackages © 2026

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