Laravel Documentation describes the ability to schedule mail for future delivery , in the following example:
$when = Carbon::now()->addMinutes(10);
Mail::to($request->user())
->cc($moreUsers)
->bcc($evenMoreUsers)
->later($when, new OrderShipped($order));
No additional configuration is mentioned in the documentation (there are no database tables for this function or something like that). But I wonder how it works ? Where Laravel stores information for later retrieval.
Is this feature reliable for longer periods of time? I want to send a letter to the user 3 days after registration. Is it possible that mail will be lost? For example, when you restart the server?
miho source
share