#36132 closed Cleanup/optimization (wontfix)
Add **kwargs to send_mail() and send_mass_mail() functions — at Version 1
| Reported by: | Nikolay Fedorov | Owned by: | |
|---|---|---|---|
| Component: | Core (Mail) | Version: | 5.1 |
| Severity: | Normal | Keywords: | send_email, send_mass_mail, mail |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Please add **kwargs to send_mail() and send_mass_mail() functions for pass it to EmailMultiAlternatives like extra arguments - "headers" as example.
Change History (1)
comment:1 by , 10 months ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → wontfix |
| Status: | new → closed |
| Summary: | Add **kwargs to send_email and send_mass_mail functions → Add **kwargs to send_mail() and send_mass_mail() functions |
Note:
See TracTickets
for help on using tickets.
The
send_mail()API is frozen and won't receive additional kwargs (maybe, some discussion in #20817). As the documentation says, "Not all features of theEmailMessageclass are available through thesend_mail()and related wrapper functions. If you wish to use advanced features, such as BCC’ed recipients, file attachments, or multi-part email, you’ll need to create EmailMessage instances directly."