title: Django EmailMultiAlternatives with Embadded Image in HTML
body: <p>I am trying to send email with HTML and embadded image. Email sending working fine and its also attaching the image in email but its not showing the image in HTML (inline). I used Content:ID in view and cid in template but no success :(. I explore so many forms and apply solutions but in vain please help!. Here is my code:</p>
  
  <pre><code>html_content = render_to_string('newsletters/newsletter_template.html', vars)
  text_content = strip_tags(html_content) 
  
  to = 'myemail@gmail.com'
  
  
  msg = EmailMultiAlternatives(self.subject, text_content, settings.STAFF_FROM_EMAIL, [to])
  msg.attach_alternative(html_content, "text/html")
  
  image_file = open('../media/images/banner_admin.gif', 'rb')
  msg_image = MIMEImage(image_file.read())
  image_file.close()
  
  msg_image.add_header('Content-ID', '&lt;image1&gt;')
  msg.attach(msg_image)
  
  msg.send()
  </code></pre>
  
  <h1>Template File:</h1>
  
  <pre><code>&lt;div style="border:2px solid #CCCCCC; width:900px; font-size:10px; padding:5px;"&gt;
      &lt;div style="margin-bottom: 10px;"&gt;&lt;img src="cid:image1" /&gt;&lt;/div&gt;
      &lt;div style=""&gt;{{body|linebreaks}}&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Please let me know if I am missing something here...</p>