php - Swiftmailer and Symfony Messenger not working with AMQP and rabbitmq within docker

one text

Solution:

This issue happens due of swiftmailer flow, it sends messages just on Kernel::terminate event, but this event will not be occurred on worker process.

To solve this issue, you should:

  1. Dispatch Events::UNSPOOL event - https://stackoverflow.com/a/51730638/9799016
  2. Or use symfony/mailer component (symfony >= 4.3) - https://symfony.com/doc/4.3/mailer.html

Source