advancedqueue_mail
Description
This module sends email notifications when Advanced Queue jobs complete, fail, or are scheduled for retry. For example, notify website administrators when queue processing fails for an item after multiple retries.
Features
- Configurable notifications for job success, retry, and failure events
- Simple admin interface integrated with Advanced Queue settings
- Customizable email subject and body with placeholder support
- Works with Drupal core's mail system out of the box
- Optional Symfony Mailer integration for advanced email features
Requirements
- Drupal 10.2+ or Drupal 11
- Advanced Queue 1.6+
- Optional: Drupal Symfony Mailer
Configuration
After installation, navigate to Administration > Configuration > System > Queues > Mail Notifications to configure email notifications for each event type.
For each event (success, retry, failure), you can configure:
- Whether to enable notifications
- Recipient email addresses
- Email subject and body with placeholders like
[job_id],[job_type],[queue_id], and[message]
Symfony Mailer Integration
For advanced email features like HTML templates, attachments, and policy-based configuration, enable the included Advanced Queue Mail Symfony Mailer submodule. This replaces the core mail implementation with Symfony Mailer, allowing you to configure emails through Symfony Mailer's policy system.
Upgrading from Previous Versions
If you were previously using this module with Symfony Mailer, the update process will automatically enable the Symfony Mailer submodule to maintain your existing configuration.