PHPackages                             thienhungho/yii2-mail - 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. thienhungho/yii2-mail

ActiveYii2-extension[Mail &amp; Notifications](/categories/mail)

thienhungho/yii2-mail
=====================

Yii2 mail

v1.0.3(7y ago)1841BSD-3-ClausePHP

Since Nov 3Pushed 7y agoCompare

[ Source](https://github.com/thienhungho/yii2-mail)[ Packagist](https://packagist.org/packages/thienhungho/yii2-mail)[ RSS](/packages/thienhungho-yii2-mail/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (5)Used By (1)

Yii2 Mail System
================

[](#yii2-mail-system)

Mail System for Yii2

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist thienhungho/yii2-mail "*"

```

or add

```
"thienhungho/yii2-mail": "*"

```

to the require section of your `composer.json` file.

### Migration

[](#migration)

Run the following command in Terminal for database migration:

```
yii migrate/up --migrationPath=@vendor/thienhungho/Mail/migrations

```

Or use the [namespaced migration](http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#namespaced-migrations) (requires at least Yii 2.0.10):

```
// Add namespace to console config:
'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'thienhungho\Mail\migrations\namespaced',
        ],
    ],
],
```

Then run:

```
yii migrate/up

```

Config
------

[](#config)

Add module MailTransportManage to your `AppConfig` file.

```
...
'modules'          => [
    ...
    /**
     * Mail Transport Manage
     */
     'mail-transport-manage' => [
        'class' => 'thienhungho\Mail\modules\MailTransportManage\MailTransportManageModules',
     ],
    ...
],
...
```

Modules
-------

[](#modules)

[Mail](https://github.com/thienhungho/yii2-mail/tree/master/src/modules/Mail), [MailTransport](https://github.com/thienhungho/yii2-mail/tree/master/src/modules/MailTransport), [MailTransportManage](https://github.com/thienhungho/yii2-mail/tree/master/src/modules/MailTransportManage)

Functions
---------

[](#functions)

[Core](https://github.com/thienhungho/yii2-mail/tree/master/src/functions/core.php)

Models
------

[](#models)

[Mailer](https://github.com/thienhungho/yii2-mail/tree/master/src/models/Mailer.php), [MailTransport](https://github.com/thienhungho/yii2-mail/tree/master/src/models/MailTransport.php)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~17 days

Total

4

Last Release

2696d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a902ad5670f1b17aed996a5c0f83586bc6ea48bcf1cf71d07fd9f660fd0a2a48?d=identicon)[thienhungho](/maintainers/thienhungho)

---

Top Contributors

[![thienhungho](https://avatars.githubusercontent.com/u/33386206?v=4)](https://github.com/thienhungho "thienhungho (8 commits)")

---

Tags

mailyii2extension

### Embed Badge

![Health badge](/badges/thienhungho-yii2-mail/health.svg)

```
[![Health](https://phpackages.com/badges/thienhungho-yii2-mail/health.svg)](https://phpackages.com/packages/thienhungho-yii2-mail)
```

###  Alternatives

[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28160.6k](/packages/boundstate-yii2-mailgun)[roopz/yii2-imap

yii2 extension to read and process mails from IMAP and PHP

4095.8k](/packages/roopz-yii2-imap)[nterms/yii2-mailqueue

Email queue component for yii2 that works with yii2-swiftmailer.

87129.2k2](/packages/nterms-yii2-mailqueue)[tigrov/yii2-mailqueue

Yii2 mail queue component for yii2-swiftmailer.

186.1k](/packages/tigrov-yii2-mailqueue)[odaialali/yii2-toastr

This is the Toastr extension for Yii 2. It encapsulates Toastr plugin in terms of Yii widgets, and makes ajax notification easy to implement.

1486.3k](/packages/odaialali-yii2-toastr)

PHPackages © 2026

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