ok for the records subclassing EmailMessage this way work: class MyEmailMessage(EmailMessage): def __init__(self, subject='', body='', from_email=None, to=None, cc=None, bcc=None, connection=None, attachments=None, headers=None): super(MyEmailMessage,self).__init__ (subject,body,from_email,to,bcc,connection,attachments,headers) self.cc=cc
def message(self): msg=super(MyEmailMessage,self).message() msg['Cc']= ', '.join(self.cc) return msg def recipients(self): return self.to + self.cc + self.bcc regards drakkan On 28 Mar, 01:13, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Fri, 2009-03-27 at 16:50 -0700, drakkan wrote: > > Hi all, > > > there is a way to send cc mail using django mail wrapper? > > > reading the official docs: > > >http://docs.djangoproject.com/en/dev/topics/email/#topics-email > > > seems only possible to define to and bcc recipients but not cc, > > That's correct, since "to" is functionally equivalent to "cc" (whereas > "to" and "bcc" are not). You can, and are encouraged to, subclass the > email message class if you want to add things like that. > > Regards, > Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---