.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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community