Is blind carbon copy implemented?

36 views
Skip to first unread message

Den

unread,
Apr 1, 2015, 11:37:40 AM4/1/15
to django...@googlegroups.com
Hello, everyone.

First of all, bcc doesn't work even in console email backend for me.

I'm unable to find code that processes bcc case. Something like that for CC.

Is it implemented at all?

Thanks in advance.

P.S. Django 1.6 if it's important, but I've failed to find the code in 1.7.x and 1.8.x branches, too.

Stephen J. Butler

unread,
Apr 1, 2015, 12:58:07 PM4/1/15
to django...@googlegroups.com
BCC recipients don't get included in the message headers. If they were
stuffed there, then they wouldn't be "bilnd", they would appear in
every copy of the message! The code that includes them is here:

https://github.com/django/django/blob/stable/1.6.x/django/core/mail/message.py#L263

You say it doesn't work, but you need to show us your code so we can
see why. Creating an EmailMessage instance with a "bcc" keyword arg as
a list of addresses should do it.
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d29001c0-3a45-4044-8cfd-0224d6c02e59%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

monoBOT

unread,
Apr 1, 2015, 1:14:15 PM4/1/15
to django...@googlegroups.com
If you want to use BCC .. you should use EmailMessage.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d29001c0-3a45-4044-8cfd-0224d6c02e59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
monoBOT
Visite mi sitio(Visit my site): monobotsoft.es/blog/

Den

unread,
Apr 1, 2015, 7:22:08 PM4/1/15
to django...@googlegroups.com
Thanks for the answers. Excuse me for panic.

Actually, there is no need in my code. One can see that smtp backend makes use of message.recepients() while console backend - don't.

So my complaint is that I can't see during debugging with console backend, that message is going to be sent to bcc recepients. They just aren't printed out in any way.

But that looks like feature request now. So it shouldn't be addressed to this group, as I understand.

четверг, 2 апреля 2015 г., 2:58:07 UTC+10 пользователь Stephen Butler написал:
Reply all
Reply to author
Forward
0 new messages