Queue e-mails for background processing #124
標籤
未選擇里程碑
沒有負責人
1 參與者
通知
截止日期
未設定截止日期。
先決條件
未設定先決條件。
參考: aheathershaw/blue-twilight#124
載入中…
新增問題並參考
No description provided.
刪除分支「%!s(<nil>)」
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Queue e-mails in the database and use a Laravel queue worker to actually send the e-mails on a background job.
Update forgot password form to BS4改為 Queue e-mails for background processingThe 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
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
.