@kinshara - with later you are delaying a queued email. Any reason you are using later and not just queue and did you configure your queues? https://laravel.com/docs/5.3/queues (which would be necassary) using later and/or queue
Nov 11, 2016
3
Level 1
Mail Later takes too much time.
Hi guys, I am developing e-commerce website which it send an email after registration. that feature took so much time for user to move on to next step. I tried to figure it out. and I got it. it is Mail function
Mail::later(5, $view,$email_data, function($message) use($to,$subject){
$message->to($to)->subject($subject);
});
whenever I put this code to comment, the process will be done immediately. and it works the opposite way. the most weird one, this only occurs for the first time. but later when I tried to buy and the system will send again, this time will so fast.
I use sendgrid for my mail host. I really have no more idea how can this be happen.
Please help. Thank you for your time.
Please or to participate in this conversation.