1. Waldemar Kornewald
  2. djangoappengine

Commits

farin  committed f9175cf

fixed broken mailing

  • Participants
  • Parent commits 40bd2bb
  • Branches default

Comments (0)

Files changed (1)

File mail.py

View file
  • Ignore whitespace
+from email.MIMEBase import MIMEBase
+
 from django.core.mail.backends.base import BaseEmailBackend
 from django.core.mail import EmailMultiAlternatives
 from django.core.exceptions import ImproperlyConfigured
                     attachments.append((attachment.get_filename(),
                                         attachment.get_payload(decode=True)))
                 else:
-                    gmsg.attachments.append((a[0], a[1]))
+                    attachments.append((attachment[0], attachment[1]))
             gmsg.attachments = attachments
         # Look for HTML alternative content
         if isinstance(message, EmailMultiAlternatives):