EmailMessage and BCC fields

73 views
Skip to first unread message

Tim Sawyer

unread,
Apr 5, 2008, 7:06:49 PM4/5/08
to Django users
Hi Folks,

I've just sent an email using EmailMessage setting the bcc field to be a list
of recipients. It sent the email, to the correct recipients, but all my
addresses are visible in the mail header, in an email header called bcc.
It's not supposed to do that is it, hence the B bit of the BCC?

def send_email(pSubject, pMessage, pRecipients):
lMessage = EmailMessage(subject=pSubject,
body=pMessage,
from_email='info <in...@example.com>',
to=['webmaster <webm...@example.com>'],
bcc=pRecipients)
lMessage.send()

I'm using 0.97-pre-SVN-7176 according to the runserver output, and talking to
an exim4 mailserver on a debian linux box.

Any suggestions of how to fix this gratefully received!

Tim.

Karen Tracey

unread,
Apr 5, 2008, 7:29:26 PM4/5/08
to django...@googlegroups.com

Update to a revision with the fix for http://code.djangoproject.com/ticket/6841, that is r7347 or higher.

Karen

Tim Sawyer

unread,
Apr 6, 2008, 12:26:13 PM4/6/08
to django...@googlegroups.com
On Sunday 06 Apr 2008, Karen Tracey wrote:
> Update to a revision with the fix for
> http://code.djangoproject.com/ticket/6841, that is r7347 or higher.

Fixed, thanks!

Tim.

Reply all
Reply to author
Forward
0 new messages