Opened 17 years ago
Closed 17 years ago
#5790 closed (wontfix)
Add support for Cc: in django/core/mail.py
Reported by: | tpetazzoni | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The attached patch adds support for Cc: in django/core/mail.py. Using the already existing 'headers' argument of the EmailMessage constructor is not enough, because just like Bcc addresses, Cc addresses must be passed to the RCPT TO command, so they must be present in the list returned by the recipients() method.
Attachments (1)
Change History (3)
by , 17 years ago
Attachment: | django-core-mail-add-cc-support added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
I've generally been -1 on this in the past. We're not aiming to implement all-singing, all-dancing email functionality here, since that already exists in the Python library.
You can send to anybody you like using the "to" line, or you can subclass EmailMessage to add CC functionality if you really want it (c.f. we needed to add Bcc because you can't use "to" for that). So this patch adds no functionality that isn't already possible, but adds more complexity to the code and the API.
Leaving open for a little while in case another core dev has a differing opinion.
comment:2 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
No, I completely agree with Malcolm.
Patch that adds support for Cc