title: Python how to insert images using win32com.client and outlook?
body: <p>I'm trying to send html emails using win32com.client. Here's a sample code:</p>
  
  <pre><code>import win32com.client as win32  
  
  mail = win32.Dispatch('outlook.application').CreateItem(0)
  mail.To = 'sample@sample.com'
  mail.Subject = 'test'
  mail.HTMLBody = html_pages
  
  mail.Send()
  </code></pre>
  
  <p>My solution now is to upload the images to a server and insert the urls into html_pages. The drawback is that the images are not displayed when the server is down. Is there a way to send the images with the emails using win32com? </p>