#36132: Add **kwargs to send_mail() and send_mass_mail() functions
-------------------------------------+-------------------------------------
     Reporter:  Nikolay Fedorov      |                    Owner:  (none)
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Core (Mail)          |                  Version:  5.1
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  send_email,          |             Triage Stage:
  send_mass_mail, mail               |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):

 The fact that `user.send_mail` delegates `**kwargs` to `mail.send_mail`
 which has a documented signature only makes it so both share the same
 interface.

 I don't see what is incoherent about `send_mail` not passing arbitrary
 kwargs to `EmailMessage`. In other words, I don't see why a function that
 opts in `**kwargs` delegation should force all functions down its stack to
 also do so.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36132#comment:3>
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/010701949592f1ec-d4fc0d37-2d5f-4abe-9edb-e657099b5f0a-000000%40eu-central-1.amazonses.com.

Reply via email to