[STAR-3075] feat: Send emails via celery tasks.
This merge request replaces the email backend with a celery-based email backend. The existing settings are then used instead to set the backend of this new backend.
Supporting information
Testing instructions
Step by step procedure
- Check out this branch
make stop && make build && make up && make shell
- In another terminal,
make logs
- Back in the first terminal,
./manage.py shell
- Send some emails like so:
from django.core import mail
emails = (
('Hey Man', "I'm The Dude! So that's what you call me.", 'dude@aol.com', ['mr@lebowski.com']),
('Dammit Walter', "Let's go bowlin'.", 'dude@aol.com', ['wsobchak@vfw.org']),
)
results = mail.send_mass_mail(emails)
- Check the log terminal to verify that they were sent to console on the celery container.