#35514: Dictionary based EMAIL_PROVIDERS settings
-----------------------------+---------------------------------------------
     Reporter:  Jacob Rief   |                    Owner:  Mike Edmunds
         Type:  New feature  |                   Status:  closed
    Component:  Core (Mail)  |                  Version:  dev
     Severity:  Normal       |               Resolution:  fixed
     Keywords:               |             Triage Stage:  Ready for checkin
    Has patch:  1            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+---------------------------------------------
Changes (by Jacob Walls <jacobtylerwalls@…>):

 * resolution:   => fixed
 * status:  assigned => closed

Comment:

 In [changeset:"0f581cd29d42d1b5ed1dafb67794c2f3ce6705c9" 0f581cd]:
 {{{#!CommitTicketReference repository=""
 revision="0f581cd29d42d1b5ed1dafb67794c2f3ce6705c9"
 Fixed #35514 -- Implemented dictionary-based MAILERS.

 See DEP 0018.

 Added:
 * MAILERS setting.
 * django.core.mail.mailers dict-like EmailBackend factory.
 * `using` argument to mail sending APIs.
 * `sent_using` attribute to mail.outbox messages in locmem backend.
 * MAILERS in startproject settings template, set to console backend.
 * AdminLogHandler.using argument.
 * BrokenLinkEmailsMiddleware.send_mail() method.

 Updated:
 * BaseEmailBackend to track the MAILERS alias used to construct it, and
   to report errors for unknown kwargs (OPTIONS).
 * EmailBackend implementations to initialize from kwargs (OPTIONS) only
   when MAILERS is being used.
 * smtp.EmailBackend to require `host` option and to default `port`
   option based on SSL/TLS options.
 * SimpleTestCase setup to substitute the locmem backend for all defined
   MAILERS configurations.
 * Django's tests that send mail to define MAILERS.

 Deprecated:
 * EMAIL_BACKEND and other backend-related EMAIL_* settings.
 * mail.get_connection().
 * The `connection`, `fail_silently`, `auth_user`, and `auth_password`
   arguments to mail functions.
 * The EmailMessage.connection attribute.
 * BaseEmailBackend support for `fail_silently`. Backends that support
   fail_silently (SMTP, console, file) now implement it directly.
 * AdminEmailHandler.email_backend argument.

 Removed undocumented features without deprecation:
 * EmailMessage.get_connection() method. (send() now raises an error if a
   subclass has attempted to override it.)
 * EmailMessage.send() no longer sets self.connection to the connection
   used for sending. (It still _uses_ a pre-existing self.connection.)
 * AdminEmailHandler.connection() method. (Init now raises an error if a
   subclass has attempted to override it.)

 Thanks to Natalia Bidart for shepherding DEP 0018 and for extensive
 reviews and suggestions on the implementation.

 Thanks to Jacob Rief for the initial implementation and multiple
 iterations while refining the design.

 Co-authored-by: Jacob Rief <[email protected]>
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35514#comment:49>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019e232496e8-006fe3ff-6aa6-474b-9c37-07df8f87a5ff-000000%40eu-central-1.amazonses.com.

Reply via email to