#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):

 I think external backends (e.g. [https://github.com/hmarr/django-ses#full-
 list-of-settings django-ses]) could benefit from a `BACKEND_OPTIONS` idea
 like this:

 {{{
 EMAIL = {
     'DEFAULT_FROM_ADDRESS': '...',  # formerly DEFAULT_FROM_EMAIL
     'SERVER_ADDRESS': '...',  # formerly SERVER_EMAIL
     'SUBJECT_PREFIX': '...',
     'BACKEND': '...',
     'BACKEND_OPTIONS': {
         'HOST': '...',
         ...  # All SMTP, filebased, or (external backend) options
      },
 }
 }}}
 but I won't push for it if no one else cares for it.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22734#comment:14>
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.50b52692ec48ba195652febaad88bab4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to