mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-22 15:32:22 +00:00
Mails to be sent are added in a queue thanks to Django Mailer (todo: configure cron)
This commit is contained in:
parent
2a744a8610
commit
ba067f050e
@ -36,6 +36,7 @@ INSTALLED_APPS = [
|
||||
# 'theme',
|
||||
|
||||
# External apps
|
||||
'mailer',
|
||||
'polymorphic',
|
||||
'crispy_forms',
|
||||
'django_tables2',
|
||||
|
@ -33,7 +33,8 @@ ALLOWED_HOSTS = [os.environ.get('NOTE_URL', 'localhost')]
|
||||
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', 'CHANGE_ME_IN_ENV_SETTINGS')
|
||||
|
||||
# Emails
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
EMAIL_BACKEND = 'mailer.backend.DbBackend' # Mailer place emails in a queue before sending them to avoid spam
|
||||
MAILER_EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
EMAIL_USE_SSL = False
|
||||
EMAIL_HOST = os.getenv('EMAIL_HOST', 'smtp.example.org')
|
||||
EMAIL_PORT = os.getenv('EMAIL_PORT', 465)
|
||||
|
@ -6,6 +6,7 @@ django-allauth==0.39.1
|
||||
django-crispy-forms==1.7.2
|
||||
django-extensions==2.1.9
|
||||
django-filter==2.2.0
|
||||
django-mailer==2.0.1
|
||||
django-polymorphic==2.0.3
|
||||
django-tables2==2.1.0
|
||||
docutils==0.14
|
||||
|
Loading…
Reference in New Issue
Block a user