title: Sending Multipart html emails which contain embedded images
body: <p>I've been playing around with the email module in python but I want to be able to know how to embed images which are included in the html.</p>
  
  <p>So for example if the body is something like</p>
  
  <pre><code>&lt;img src="../path/image.png"&gt;&lt;/img&gt;
  </code></pre>
  
  <p>I would like to embed <em>image.png</em> into the email, and the <code>src</code> attribute should be replaced with <code>content-id</code>. Does anybody know how to do this?</p>