Support the ongoing development of Laravel.io →
posted 8 years ago
Queues

I want to queue and send mails with database based queue driver. I can send emails with that:

Mail::to('someone@example.com')->send(new ForgotPassword($first_name, $link));

This also works (I see that a row is inserted in jobs table).

Mail::to('someone@example.com')->queue(new ForgotPassword($first_name, $link));

But I couldn't find the way to run queues and send emails in the background. This not working.

php artisan queue:work

How can I do that?

Note: It is Laravel 5.4.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mehmet mehmet Joined 18 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.