I'm using EmailMessage to send emails upon certain User actions, and
I'm getting weird behavior with attachments. Specifically, I'm seeing
emails with multiple attachments when there should be no attachments.

        email = EmailMessage(self.__subject, self.__body, sender,
recipients)
        for a in self.__attachments:
            # each attachment is a tuple like
('design.png',img_data,'image/png')
            email.attach(a[0],a[1],a[2])
        email.send()

We assert higher up that self.__attachments has length <= 1 (though
it's not a regular part of the code, just debugging assistance), yet
emails are periodically yet unpredictably being sent with multiple
attachments (all different).

Is this a known issue?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to