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:
- Dispatch Events::UNSPOOLevent - https://stackoverflow.com/a/51730638/9799016
- Or use symfony/mailercomponent (symfony >= 4.3) - https://symfony.com/doc/4.3/mailer.html