Hi all, I am trying to start a discussion about #1541 http://code.djangoproject.com/ticket/1541 Some discussion about this bug can be seen here http://groups.google.com/group/django-developers/browse_thread/thread/9f9f1ff61e9314a5/aa9fac2811918961
This is a proposal and patch to add multipart message capability to Django. I would like to get feedback about this patch http://code.djangoproject.com/attachment/ticket/1541/mail_attachment_as_str.diff (the third patch submitted for the bug). This patch adds an extra optional argument `attachments' to `send_mail()'. `attachments` is expected to be a list of tuples. For instance: attachments = [ (image_filename, image_file_contents_as_string, 'image/png'), (audio_filename, audio_file_contents_as_string, 'audio/mpeg'), ] creates a multipart message with an image and audio file as attachments. The patch also contains documentation, but the example does not close opened files. I will fix this, if this approach is accepted in this discussion. Please holler even if you agree. Thanks you developers for a great framework. Thank you for reading. Suriya --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---
