djangosnippets.org: Latest snippets posted by agrossman@gmail.comhttp://djangosnippets.org/users/agrossman@gmail.com/2012-01-24T14:59:29.312470-06:00agrossman@gmail.comTake a django.core.mail email message and replace any MEDIA_URL-served images with attached images
2012-01-24T14:59:29.312470-06:00agrossman@gmail.comhttp://djangosnippets.org/snippets/2661/<p>The code here will take an EmailMessage from django.core.mail and replace the sourcing of any images served by the application with attached image content. Note: This expects a valid closing tag of <strong>/></strong> on img elements, it will not properly handle filenames with <strong>'</strong> characters in it, and it does …</p>
Freely redistributable