#22734: Move SMTP / email settings to a dictionary
-------------------------------------+-------------------------------------
Reporter: jwa | Owner: nobody
Type: | Status: new
Cleanup/optimization | Version: master
Component: Core (Mail) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: settings, email, | Needs documentation: 0
mail, smtp | Patch needs improvement: 1
Has patch: 1 | UI/UX: 0
Needs tests: 1 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by timo):
Another idea I had while mulling this over was something like this:
{{{
EMAIL = {
'default': {
'BACKEND': 'django.core.mail.backends.smtp.EmailBackend',
'HOST': 'localhost',
'PORT': 25,
},
'file': {
'BACKEND': 'django.core.mail.backends.filebased.EmailBackend',
'FILE_PATH': '/tmp/app-messages',
},
}
}}}
The implementation would obviously be a lot trickier and it may be
overkill since it's probably a rare use case to want to use multiple mail
providers in a single project, but it would allow us to consolidate more
than just the SMTP related settings.
--
Ticket URL: <https://code.djangoproject.com/ticket/22734#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/061.3cd1007c7613daa0091d50c6b202598a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.