PHPackages                             craftcms/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. craftcms/mailgun

ActiveCraft-plugin[Mail &amp; Notifications](/categories/mail)

craftcms/mailgun
================

Mailgun integration for Craft CMS

3.1.0(2y ago)27226.1k↓40.4%8[3 PRs](https://github.com/craftcms/mailgun/pulls)5MITPHPPHP ^8.0.2CI passing

Since Jan 31Pushed 2y ago3 watchersCompare

[ Source](https://github.com/craftcms/mailgun)[ Packagist](https://packagist.org/packages/craftcms/mailgun)[ RSS](/packages/craftcms-mailgun/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (17)Used By (5)

[![Mailgun for Craft CMS icon](./src/icon.svg)](./src/icon.svg)

Mailgun for Craft CMS
=====================

[](#mailgun-for-craft-cms)

This plugin provides a [Mailgun](http://www.mailgun.com/) integration for [Craft CMS](https://craftcms.com/).

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

[](#requirements)

This plugin requires Craft CMS 4.0.0+ or 5.0.0+.

You can install this plugin from the Plugin Store or with Composer.

#### From the Plugin Store

[](#from-the-plugin-store)

Go to the Plugin Store in your project’s Control Panel and search for “Mailgun”. Then click on the “Install” button in its modal window.

#### With Composer

[](#with-composer)

Open your terminal and run the following commands:

```
# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require craftcms/mailgun

# tell Craft to install the plugin
./craft install/plugin mailgun
```

Setup
-----

[](#setup)

Once Mailgun is installed, go to Settings → Email, and change the “Transport Type” setting to “Mailgun”. Enter your domain name and Mailgun API Key (which you can get from your [domain overview](https://app.mailgun.com/app/sending/domains) page) and click Save.

> **Tip:** The Domain, API Key, and Endpoint settings can be set to environment variables. See [Environmental Configuration](https://docs.craftcms.com/v3/config/environments.html) in the Craft docs to learn more about that.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 78.1% 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 ~186 days

Recently: every ~176 days

Total

15

Last Release

790d ago

Major Versions

1.4.3 → 2.0.02021-11-06

2.0.0 → 3.0.0-beta.12022-03-04

v2.x-dev → 3.0.02022-05-03

PHP version history (2 changes)3.0.0-beta.1PHP ^8.0.2

2.0.1PHP &gt;=7.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ccdf8b493035de2343c55bd889513e3af5c04d5823482a2b186ad16adb1c3e3?d=identicon)[brandonkelly](/maintainers/brandonkelly)

---

Top Contributors

[![brandonkelly](https://avatars.githubusercontent.com/u/47792?v=4)](https://github.com/brandonkelly "brandonkelly (82 commits)")[![angrybrad](https://avatars.githubusercontent.com/u/61869?v=4)](https://github.com/angrybrad "angrybrad (16 commits)")[![boboldehampsink](https://avatars.githubusercontent.com/u/378974?v=4)](https://github.com/boboldehampsink "boboldehampsink (3 commits)")[![andris-sevcenko](https://avatars.githubusercontent.com/u/1891118?v=4)](https://github.com/andris-sevcenko "andris-sevcenko (2 commits)")[![i-just](https://avatars.githubusercontent.com/u/4500340?v=4)](https://github.com/i-just "i-just (2 commits)")

---

Tags

craft-plugincraft3craftcmsmailgunmailercmsyii2mailguncraftcms

### Embed Badge

![Health badge](/badges/craftcms-mailgun/health.svg)

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

###  Alternatives

[craftcms/contact-form

Add a simple contact form to your Craft CMS site

295427.3k17](/packages/craftcms-contact-form)[craftcms/postmark

Postmark adapter for Craft CMS

20182.4k2](/packages/craftcms-postmark)[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)

PHPackages © 2026

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