Part of the Mail ecosystem · 12 projects
This module provides a system for managing emails in queues. It treats each queued email as an entity and can send them using Drupal's core email system. You can configure various settings for each queue, such as the number of items processed per cron run and the delay between items.
This module provides a queues based system to manage mails.
It treats every queue item as an entity and provides a default processor to send them via Drupal core email's system.
Processors can be provided from external modules and can be selected in each queue.
Each queue can be limited by the following:
- Number of items per cron run
- Delay between one item and the next
- Number of attemps per item (Pending to implement)
Note the following things:
- At the moment this module does not use the Drupal core Queue API.
- Queue items are created programmatically (there isn't a UI for this at the moment).
INSTALLATION
Using composer:
composer require drupal/mail_entity_queue --sort-packages
CONFIGURATION
- You can add one or several Queues in Configuration > System > Mail entity queues (config/system/mail-entity-queue)
- Mail queue items are managed from Structure > Mail queue items (admin/structure/mail-entity-queue).
- You can update/delete/process each item individually from there.
USAGE
- First, create a queue from Configuration > System > Mail entity queues (config/system/mail-entity-queue)
- Using the queue machine name, load it programmatically and add items to it, for example:
$queue = \Drupal::entityTypeManager()->getStorage('mail_entity_queue')->load('my_queue'); $to = '[email protected]'; $params = [ 'subject' => 'My awesome email', 'body' => ['Body of the email'], 'headers' => [ 'From' => '[email protected]', 'Sender' => '[email protected]' ], ]; $queue->addItem($to, $params); - Manage the queues from Structure > Mail queue items (admin/structure/mail-entity-queue)
RECOMMENDED MODULES
- Ultimate cron: https://www.drupal.org/project/ultimate_cron
- Swiftmailer: https://www.drupal.org/project/swiftmailer
- MailSystem: https://www.drupal.org/project/mailsystem
ALTERNATIVE MODULES
Queue Mail: https://www.drupal.org/project/queue_mail
SPONSORS
Ask your assistant about Mail Entity Queue
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- options Drupal core
- system Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Mail ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.4 | Stable | 10–11 | Mar 7, 2026 | ||
| 2.0.3 | Stable | 10–11 | Nov 23, 2025 | ||
| 2.0.2 | Stable | 10–11 | Oct 16, 2025 | ||
| 2.0.1 | Stable | 10–11 | Sep 29, 2025 | ||
| 2.0.0 | Stable | 10–11 | Sep 25, 2025 | ||
| 2.x-dev | Dev | 10–11 | Sep 25, 2025 | ||
| 8.x-1.0-alpha6 | Pre-release | 9–10 | Oct 11, 2023 | ||
| 8.x-1.0-alpha5 | Pre-release | 9–10 | Oct 10, 2023 |