#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 agree the current implementation of `timeout` is odd and we should move
 it to the dictionary setting.

 In terms of grouping email settings, I was thinking it would allow us to
 group other backend options like `EMAIL_FILE_PATH`:
 {{{
 EMAIL = {
    'BACKEND': 'django.core.mail.backends.filebased.FileBackend',
    'FILE_PATH': '...',
 }
 }}}
 A better grouping might be to have an `EMAIL['BACKEND_OPTIONS']` key
 (mirroring how we have `OPTIONS` in `DATABASES`) with value `{'FILE_PATH':
 '...'}` (or the dictionary that's equivalent to the proposed `SMTP_CONFIG`
 if `'BACKEND'` were `smtp.EmailBackend`).

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

Reply via email to