Look over https://laravel.com/docs/9.x/mail#queueing-a-mail-message
But read the chapter on queues also.
https://laravel.com/docs/9.x/queues#main-content
Watch videos on queues also: https://laracasts.com/series/laravel-queue-mastery
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
My boss blamed me for writing bad code that doesn't work in live test environment but works on windows development machine.
After passing through so emotional blackmail I discovered that the Laravel queue picks up null Mail configuration but the email configuration is in the .env file. This is so strange.
I have run all possible artisan commands to clear cache but no luck.
However, if I don't send email through queue everything works. i.e send email through controller action in a request.
Laravel schedule system starts off the queue job.
How does the queue system works?
Please or to participate in this conversation.