Opened 2 months ago

Last modified 7 weeks ago

#28598 assigned Cleanup/optimization

BCC addresses are ignored in the console and file email backends

Reported by: zngr Owned by: Stefan Schneider
Component: Core (Mail) Version: 1.11
Severity: Normal Keywords: mail, bcc
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi there,

we noticed during development that the bcc header line is not printed in the console (and filebased since it inherits from console) EmailBackend (django.core.mail.backends.{console|filebased}.EmailBackend). It seems like this issue has been reported before, e.g. in #18582, however there was no specific solution. It looks like a design decision, however there is no documentation (that I found) about it.

In my opinion, it would be nice to have the BCC line printed in those backends. As the documentation says, those backends are not intended for use in production, which makes it an ideal tool for development and testing. However that requires that the backend behaves just as a regular (smtp) backend would and display the email message exactly as it would have been sent.

If you decide not to fix this, please add a note to the documentation to help developers avoid a sleepless night because they really can't get BCC to work in their mail function ;)

Best,
zngr

Change History (2)

comment:1 Changed 2 months ago by Tim Graham

Summary: Django ignores BCC in console and filebased EmailBackendBCC addresses are ignored in the console and file email backends
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

I'm not sure which solution is best, but I'll accept the ticket as an indication to do something (either a code change or document the limitation).

comment:2 Changed 7 weeks ago by Stefan Schneider

Owner: changed from nobody to Stefan Schneider
Status: newassigned
Note: See TracTickets for help on using tickets.
Back to Top