Laravel 5.1 Mail ::稍后

时间:2015-06-30 10:32:39

标签: php email laravel queue

我无法使用laravel 5.1设置延迟邮件

在渲染方法的App \ Exceptions \ Handler中,我想将任何发生的错误邮寄给我自己:像这样

Mail::later(5, 'emails.servererror', ['exception' => $e, 'request' => $request] ,function($message)
{
    ...
});

这完美无缺,但我想延迟发送邮件至Mail :: later。 E.G。

This method will automatically take care of pushing a job onto the queue to send the mail message in the background. Of course, you will need to configure your queues before using this feature.

我遇到问题的部分如下:

Mail::later

我已多次阅读documentation。我仍然无法弄清楚我应该做些什么来使div工作。

0 个答案:

没有答案