Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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

ALTERNATIVE MODULES

Queue Mail: https://www.drupal.org/project/queue_mail

SPONSORS

Fundación UNICEF Comité Español

Activity

Total releases
6
First release
Sep 2025
Latest release
4 months ago
Releases (12 mo)
6 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.0.4 Stable Mar 7, 2026
2.0.3 Stable Nov 23, 2025
2.0.2 Stable Oct 16, 2025
2.0.1 Stable Sep 30, 2025
2.0.0 Stable Sep 25, 2025
2.x-dev Dev Sep 25, 2025