PHPackages                             simplement/mailqueue - 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. simplement/mailqueue

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

simplement/mailqueue
====================

Simple queue for outcoming mails for Nette Framework.

v0.2(8y ago)158BSD-3-ClausePHP

Since Sep 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Simplement/mailqueue)[ Packagist](https://packagist.org/packages/simplement/mailqueue)[ Docs](https://github.com/simplement)[ RSS](/packages/simplement-mailqueue/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (10)Versions (3)Used By (0)

Simplement \\ MailQueue
=======================

[](#simplement--mailqueue)

Simplement\\MailQueue is a small extension for Nette Framework, which will wrap default Nette `SendmailMailer` or `SmtpMailer` by it's own `Mailer` class. All outcoming mails are then redirected into mail queue, which is by default implemented by [Kdyby\\Doctrine](https://github.com/Kdyby/Doctrine) entity.

If you don't wan't to use default mail queue, you can simply implement your own by extending `Simplement\MailQueue\IEntry` and `Simplement\MailQueue\IQueue` interfaces and create e.g. file system mail queue instead of database system one.

Then you can setup cron, which will in given inteval send dose of fronted mails e.g. using command

```
php www/index.php mailqueue:sendfronted
```

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

[](#requirements)

[Nette Framework](https://nette.org/) and [Kdyby\\Console](https://github.com/Kdyby/Console), recommended [Kdyby\\Doctrine](https://github.com/Kdyby/Doctrine).

---

Benefits
--------

[](#benefits)

- All outcoming mails aren't sent inmediatelly, but they are moved to queue -&gt; response to client is much faster.
- You don't have to update you current app code. All mails are after setting this extension automatically redirected into mail queue.
- If the app is unnable to send mail (due to loss of internet connection etc.) app will not crush, but reschedule mail and try it send again in set interval.
- You can set priority to each mail.
- You can set default `from` email address, which will be used if mail doesn't have it set.

---

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

[](#configuration)

```
extensions:							# Add MailQueue Extension
	mailqueue: Simplement\Bridges\MailDI\MailQueueExtension

mailqueue:
	timeLimit: 30					# Max executin time of cron script
	mailLimit: 50					# Max number of mails sent peer one cron call
	attemptLimit: 5					# Max number of attempts to send mail
	rescheduleTime: +30 minutes		# If unnable to send mail, try nex attempt after ...
	defaultSender: 'MyAwesomeApp '	# Optional

# If you want to use default Doctrine Mail Queue
services:
	mailQueue: Simplement\Bridges\DoctrineORM\MailQueue

doctrine:
	metadata:
		Simplement: %appDir%/../vendor/simplement/mailqueue/src/Bridges/DoctrineORM/Entity
```

---

Usage
-----

[](#usage)

```
 $message = new Nette\Mail\Message;

 :

 /** @var Nette\DI\Container $container */
 $container = ...;

 $mailer = $container->getByType('Nette\Mail\IMailer');
 or
 $mailer = $container->getService('mail.mailer');
 or
 $mailer = $container->getService('nette.mailer');

 /** @var Simplement\MailQueue\Mailer $mailer */
 $mailer->send($message, $priority = 1, $useQueue = TRUE);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

2

Last Release

3135d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/51b9567a1032ae16b66f291f87305188ec16965c1fc160b82069a119706ba43f?d=identicon)[mdjimy](/maintainers/mdjimy)

---

Top Contributors

[![mdjimy](https://avatars.githubusercontent.com/u/7365074?v=4)](https://github.com/mdjimy "mdjimy (5 commits)")

---

Tags

nettemailqueue

### Embed Badge

![Health badge](/badges/simplement-mailqueue/health.svg)

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

###  Alternatives

[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

5389.8M246](/packages/nette-mail)[contributte/mailing

Sending emails with pleasure and prepared templates.

16961.0k2](/packages/contributte-mailing)[yozaz/laravel-swiftmailer

Laravel and SwiftMailer integration fix for Queued deamon workers

2471.5k](/packages/yozaz-laravel-swiftmailer)[dotblue/mandrill

OO wrapper above Mandrill API for sending e-mails

1476.5k1](/packages/dotblue-mandrill)[rmrevin/yii2-postman

Mail module for Yii2.

2612.3k](/packages/rmrevin-yii2-postman)[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)
