#124 Queue e-mails for background processing

Затворени
отворен преди 7 месеца от aheathershaw · 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.
aheathershaw added this to the Version 2.2.0-beta.1 milestone преди 7 месеца
aheathershaw self-assigned this преди 7 месеца
aheathershaw added the
bug
label преди 7 месеца
aheathershaw changed title from Update forgot password form to BS4 to Queue e-mails for background processing преди 7 месеца
aheathershaw added the
wip
label преди 7 месеца
aheathershaw коментира преди 7 месеца
Притежател

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 коментира преди 7 месеца
Притежател

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 removed the
wip
label преди 7 месеца
aheathershaw коментира преди 7 месеца
Притежател

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 added the
enhancement
label преди 5 месеца
aheathershaw removed the
bug
label преди 5 месеца
Впишете се за да се присъедините към разговора.
Няма етикет
bug
wip
Няма етап
No Assignees
1 участника
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Отказ
Запис
Все още няма съдържание.