def email_embed_image(email, img_content_id, img_data):
img = MIMEImage(img_data)<EOL>img.add_header('<STR_LIT>', '<STR_LIT>' % img_content_id)<EOL>img.add_header('<STR_LIT>', '<STR_LIT>')<EOL>email.attach(img)<EOL>
email is a django.core.mail.EmailMessage object