PHPackages                             hakito/cakephp-mailqueue-plugin - 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. hakito/cakephp-mailqueue-plugin

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

hakito/cakephp-mailqueue-plugin
===============================

Plugin to store mail in a queue for later sendout

v5.0(2y ago)73722GPL-2.0PHP

Since Sep 13Pushed 2y ago3 watchersCompare

[ Source](https://github.com/hakito/CakePHP-Mailqueue-Plugin)[ Packagist](https://packagist.org/packages/hakito/cakephp-mailqueue-plugin)[ Docs](https://github.com/hakito/CakePHP-Mailqueue-Plugin)[ RSS](/packages/hakito-cakephp-mailqueue-plugin/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)Dependencies (2)Versions (5)Used By (0)

CakePHP-Mailqueue-Plugin
========================

[](#cakephp-mailqueue-plugin)

[![Build Status](https://camo.githubusercontent.com/6e4dbf2bc08ed4f1402a505a7f758c65ca1e449b188029b4865db4c0d1e2e2c1/68747470733a2f2f6170702e7472617669732d63692e636f6d2f68616b69746f2f43616b655048502d4d61696c71756575652d506c7567696e2e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/hakito/CakePHP-Mailqueue-Plugin)[![Latest Stable Version](https://camo.githubusercontent.com/3f661126e2999d31591741edc4c919b7e5a52d584db764311ef44d35c0d442fe/68747470733a2f2f706f7365722e707567782e6f72672f68616b69746f2f63616b657068702d6d61696c71756575652d706c7567696e2f762f737461626c652e737667)](https://packagist.org/packages/hakito/cakephp-mailqueue-plugin) [![Total Downloads](https://camo.githubusercontent.com/111210e25efa4c060a7b7321d437765d973f48da559aa580710de0dbf2c2cd5a/68747470733a2f2f706f7365722e707567782e6f72672f68616b69746f2f63616b657068702d6d61696c71756575652d706c7567696e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/hakito/cakephp-mailqueue-plugin) [![Latest Unstable Version](https://camo.githubusercontent.com/594de1744b8ee47c51491557fee0d77d235bc10daf37112c8068b947a593c300/68747470733a2f2f706f7365722e707567782e6f72672f68616b69746f2f63616b657068702d6d61696c71756575652d706c7567696e2f762f756e737461626c652e737667)](https://packagist.org/packages/hakito/cakephp-mailqueue-plugin) [![License](https://camo.githubusercontent.com/93f9fbea8f94d39ce2f47979e7350535806bce76cfb7f79f3472e61513e03643/68747470733a2f2f706f7365722e707567782e6f72672f68616b69746f2f63616b657068702d6d61696c71756575652d706c7567696e2f6c6963656e73652e737667)](https://packagist.org/packages/hakito/cakephp-mailqueue-plugin)

CakePHP 5.x plugin to store mail in a queue for later sendout.

When working with emails on a webservice sending email blocks the http request until the email is actually sent out. This can be frustrating for a user especially if the smtp server does not respond promptly.

With this plugin you can save the mail to a local queue file and invoke the actual transport for example with a cron fired cake shell command.

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

[](#installation)

If you are using composer simply add it with:

```
composer require hakito/cakephp-mailqueue-plugin
```

Otherwise download the plugin to app/Plugin/Mailqueue.

Load the plugin in your bootstrap method

```
$this->addPlugin('MailQueue');
```

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

[](#configuration)

Add a transport entry to your app\_local.php

```
'EmailTransport' => [
    'MailQueue' => [
        // required
        'className' => \MailQueue\Mailer\Transport\QueueTransport::class,
        'queueFolder' => TMP . 'mailqueue', // storage location for mailqueue

        // optional:
        'requeue' => [300, 500, 1000] // requeue after x seconds in case of an error
    ]
],

'Email' => [
    'default' => [
        'transport' => 'MailQueue',
    ],
    'smtp' => [
        // configure your real mailer here
    ]
]
```

Queue a mail
------------

[](#queue-a-mail)

Send mail to the queue as usually in cake

```
$mailer = new Mailer('default');
// place your content in $email
$mailer->deliver();
```

Do the real sendout
-------------------

[](#do-the-real-sendout)

Use cake shell to do the real sendout. The shell script requires 2 arguments. The first is the name of your queue configuration and the second the name of the config to use for the real sendout.

In your app directory execute:

```
bin/cake MailQueue SendMail smtp
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

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 ~1132 days

Total

4

Last Release

867d ago

Major Versions

v1.2 → v2.02020-06-21

v2.0 → v3.02020-07-05

v3.0 → v5.02024-01-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/320853?v=4)[Gerd Katzenbeisser](/maintainers/hakito)[@hakito](https://github.com/hakito)

---

Top Contributors

[![hakito](https://avatars.githubusercontent.com/u/320853?v=4)](https://github.com/hakito "hakito (27 commits)")

---

Tags

emailcakephpqueue

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hakito-cakephp-mailqueue-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/hakito-cakephp-mailqueue-plugin/health.svg)](https://phpackages.com/packages/hakito-cakephp-mailqueue-plugin)
```

###  Alternatives

[lorenzo/cakephp-email-queue

Queue, preview and and send emails stored in the database

57121.5k1](/packages/lorenzo-cakephp-email-queue)[narendravaghela/cakephp-mailgun

Mailgun plugin for CakePHP - Send emails using Mailgun API

23356.6k](/packages/narendravaghela-cakephp-mailgun)[nterms/yii2-mailqueue

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

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

Gourmet Email Plugin for rapid CakePHP application development.

175.2k](/packages/gourmet-email)[tigrov/yii2-mailqueue

Yii2 mail queue component for yii2-swiftmailer.

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

PHPackages © 2026

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