@domenico
To clear the Symfony mailer queue, you can do the following:
1
|
php bin/console messenger:consume async |
This command will consume and process all the messages in the mailer queue. It is recommended to set up a cron job or scheduled task to run this command regularly to ensure that the mailer queue is cleared in a timely manner.
1
|
php bin/console messenger:failed:retry --force |
This command will retry any failed messages in the messenger transport, effectively clearing the mailer queue.
By following these steps, you can effectively clear the Symfony mailer queue and ensure that all pending emails are processed and sent out.