Support the ongoing development of Laravel.io →
Laravel Queues Mail

.env QUEUE_DRIVER=database MAIL_DRIVER=sendmail

config/mail.php

'sendmail' => '/usr/sbin/sendmail -bs' The mail is sent from the application that is running in an amazon ec2 instantly. But it is received by the user after two or three hours. The queue driver is set in a way that is configured to the database. And the dispatched job is received in the jobs database table.

When I run php artisan queue:work

the message is processed without any errors.

The mail driver that is being used is sendmail

But the mail receiver receives his/her mail after a long delay that varies.

I am stuck with this problem for the past 2 days.

Is it the problem of laravel or sendmail?

Is there any configuration mistake from my side.

Please help me.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Jithin jithinlal Joined 26 May 2018

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.