Problem/Motivation
Currently there is no built-in way to route all outgoing emails through a queue and retry them later if sending fails. The number of retry attempts is hard-coded to 5 in the processor, and it cannot be configured per queue or per mail policy.
Proposed resolution
The goal is to enhance the existing queue system with Symfony Mailer support and configurable retry behavior. This includes:
- Implementing a new Email Adjuster that allows routing all outgoing emails into a chosen
mail_entity_queue. - The Email Adjuster will also allow configuring the maximum number of retry attempts for those emails.
- Implement a processor to use
Symfony Mailerinstead ofMailManager. - Adding a configurable field on the queue item entity to store the maximum number of retry attempts, where: 0 = unlimited retries
Issue fork mail_entity_queue-3552418
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
facine commentedThank you! Merged.