Queue e-mails for background processing #124

已关闭
aheathershaw2019-07-13 18:23:31 +01:00创建 · 3 评论
管理员

Queue e-mails in the database and use a Laravel queue worker to actually send the e-mails on a background job.

Queue e-mails in the database and use a Laravel queue worker to actually send the e-mails on a background job.
aheathershaw2019-07-13 18:23:31 +01:00 添加了里程碑 Version 2.2.0-beta.1
aheathershaw2019-07-13 18:23:31 +01:00 指派给自己
aheathershaw2019-07-13 18:23:31 +01:00 添加了标签
bug
aheathershaw2019-07-13 21:06:56 +01:00 修改标题 Update forgot password form to BS4Queue e-mails for background processing
aheathershaw2019-07-13 21:07:28 +01:00 添加了标签
wip
作者
管理员

The best way I can see this working is to use Laravel Notifications and dynamically adjust the “via” result.

(Laravel can not choose whether to queue a notification dynamically.)

We could have a custom notification channel that writes it to the database and a custom worker that processes that table.

This would however mean converting all Mailables to Notifications.

The best way I can see this working is to use Laravel Notifications and dynamically adjust the “via” result. (Laravel can not choose whether to queue a notification dynamically.) We could have a custom notification channel that writes it to the database and a custom worker that processes that table. This would however mean converting all Mailables to Notifications.
作者
管理员

Actually as of 5.3.7, you can use Mailables in conjunction with notifications:

https://laracasts.com/discuss/channels/laravel/laravel-53-using-mailable-inside-a-notification?page=0

Actually as of 5.3.7, you can use Mailables in conjunction with notifications: https://laracasts.com/discuss/channels/laravel/laravel-53-using-mailable-inside-a-notification?page=0
aheathershaw2019-07-14 16:15:03 +01:00 删除了标签
wip
作者
管理员

This is now complete. To run the queue, use the command below:

php artisan bt-queue:send-emails

or reference the example systemd service in resources/systemd/blue-twilight-email.service.

This is now complete. To run the queue, use the command below: `php artisan bt-queue:send-emails` or reference the example systemd service in `resources/systemd/blue-twilight-email.service`.
aheathershaw2019-09-07 11:07:55 +01:00 添加了标签
enhancement
,删除了标签
bug
登录 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
通知
到期时间
到期日期无效或超出范围。请使用 'yyyy-mm-dd' 格式。

未设置到期时间。

依赖工单

没有设置依赖项。

参考:aheathershaw/blue-twilight#124
没有提供说明。