Queue e-mails for background processing #124

Закрито
2019-07-13 18:23:31 +01:00 відкрито aheathershaw · 3 коментарів
aheathershaw прокоментував(ла) 2019-07-13 18:23:31 +01:00
Власник

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.
aheathershaw додав(ла) до Version 2.2.0-beta.1 етапу 2019-07-13 18:23:31 +01:00
aheathershaw самостійно призначений 2019-07-13 18:23:31 +01:00
aheathershaw додано
bug
з міткою 2019-07-13 18:23:31 +01:00
aheathershaw змінився заголовок з Update forgot password form to BS4 на Queue e-mails for background processing 2019-07-13 21:06:56 +01:00
aheathershaw додано
wip
з міткою 2019-07-13 21:07:28 +01:00
aheathershaw прокоментував(ла) 2019-07-13 22:18:51 +01:00
Author
Власник

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.
aheathershaw прокоментував(ла) 2019-07-13 22:30:08 +01:00
Author
Власник

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
aheathershaw видалено
wip
з міткою 2019-07-14 16:15:03 +01:00
aheathershaw закрив цю задачу 2019-07-14 16:15:07 +01:00
aheathershaw прокоментував(ла) 2019-07-14 16:16:09 +01:00
Author
Власник

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`.
aheathershaw додано
enhancement
і видалено
bug
мітками 2019-09-07 11:07:55 +01:00
Підпишіться щоб приєднатися до обговорення.
Без мітки
bug
enhancement
feature
invalid
task
wip
Етап відсутній
Немає виконавця
1 учасників
Сповіщення
Дата завершення
Термін дії не дійсний або знаходиться за межами допустимого діапазону. Будь ласка використовуйте формат 'yyyy-mm-dd'.

Термін виконання не встановлений.

Залежності

No dependencies set.

Reference: aheathershaw/blue-twilight#124
No description provided.