PHPackages                             vision/yii2-queue-mails - 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. vision/yii2-queue-mails

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

vision/yii2-queue-mails
=======================

Queue mails

1(10y ago)127MITPHP

Since Dec 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/visionp/QueueMails)[ Packagist](https://packagist.org/packages/vision/yii2-queue-mails)[ RSS](/packages/vision-yii2-queue-mails/feed)WikiDiscussions master Synced 5d ago

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

QueueMails
==========

[](#queuemails)

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

[](#installation)

The preferred way to install this extension is through composer.

Either run

```
php composer.phar require --prefer-dist vision/yii2-private-messages "@dev"

```

or add to the require section of your composer.json file.

```
"vision/yii2-queue-mails":"~1.0.0"

```

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

[](#configuration)

Once the extension is installed, add following code to your application configuration :

```
       'mailer' => [
           'class' => 'vision\queue_mails\Mailer',
           'mailsPerRound' => 5,
           'realMailer' => [
               'class' => '****',
               'apikey' => '*****'
           ]
       ],

```

and /config/console.php:

```
       'mailer' => [
           'class' => 'vision\queue_mails\Mailer',
           'mailsPerRound' => 5,
           'realMailer' => [
               'class' => '****',
               'apikey' => '*****'
           ]
       ],
 ```

Following properties are available for customizing the mail queue behavior.

mailsPerRound: Number of emails to send at a time.

Run yii migrate command in command line:

php yii migrate --migrationPath=@vendor/vision/yii2-queue-mails/migrations

Most preferably this could be a console command (eg: mail/send) which can be triggered by a CRON job.
-----

Setting the CRON job

Set a CRON job to run console command:

```

```
*/10 * * * * php /var/www/html/myapp/yii mail/send

```

```

Usage
-----

```

Yii::$app-&gt;mailer-&gt;compose('contact/html', \['contactForm' =&gt; $form\]) -&gt;setFrom('') -&gt;setTo($form-&gt;email) -&gt;setSubject($form-&gt;subject) -&gt;send();

```

Processing the mail queue
-----

Now calling Yii::$app->mailqueue->process() will process the message queue and send out the emails.

```

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Unknown

Total

1

Last Release

3887d ago

### Community

Maintainers

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

---

Tags

emailyii2extensionqueue mails

### Embed Badge

![Health badge](/badges/vision-yii2-queue-mails/health.svg)

```
[![Health](https://phpackages.com/badges/vision-yii2-queue-mails/health.svg)](https://phpackages.com/packages/vision-yii2-queue-mails)
```

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13926.0k65](/packages/skeeks-cms)[nterms/yii2-mailqueue

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

84137.7k2](/packages/nterms-yii2-mailqueue)[nickcv/yii2-mandrill

Mandrill Api Integration for Yii2

29585.1k2](/packages/nickcv-yii2-mandrill)[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28170.7k](/packages/boundstate-yii2-mailgun)[djagya/yii2-sparkpost

A library provides Yii2 integration with SparkPost mail service

1816.4k](/packages/djagya-yii2-sparkpost)[tigrov/yii2-mailqueue

Yii2 mail queue component for yii2-swiftmailer.

196.9k](/packages/tigrov-yii2-mailqueue)

PHPackages © 2026

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