Commits

Waldemar Kornewald committed aa5f615

fixed cc support

  • Participants
  • Parent commits c114194

Comments (0)

Files changed (1)

         """Create and return App Engine EmailMessage class from message."""
         gmsg = aeemail.EmailMessage(sender=message.from_email,
                                     to=message.to,
-                                    cc=message.cc,
                                     subject=message.subject,
                                     body=message.body)
         if message.extra_headers.get('Reply-To', None):
             gmsg.reply_to = message.extra_headers['Reply-To']
+        if message.cc:
+            gmsg.cc = list(message.cc)
         if message.bcc:
             gmsg.bcc = list(message.bcc)
         if message.attachments:
         from google.appengine.ext import deferred
         from django.conf import settings
         queue_name = getattr(settings, 'EMAIL_QUEUE_NAME', 'default')
-        deferred.defer(_send_deferred, 
-                       message, 
+        deferred.defer(_send_deferred,
+                       message,
                        fail_silently=self.fail_silently,
                        _queue=queue_name)