title: Python win32com.client send image embedded in email
body: <p>I am looking to send an image embedded in HTML to send out to a list of senders. </p>
  
  <p>I need to use win32com.client, SMTP is blocked. The image is saved as png and is originally a matplotlib bar chart.</p>
  
  <p>The script successfully sends out the email the recipients cannot see the image embedded in the email. However, I can see the image when I send the email to myself. </p>
  
  <p>I tried to <strong>attach the image</strong> to the email, still no luck.</p>
  
  <pre><code>email = """&lt;body&gt;
  &lt;p&gt;&lt;img src="C:\output.png"&gt;&lt;/p&gt;
  &lt;/body&gt;
  """
  
  import win32com.client
  olMailItem = 0x0
  obj = win32com.client.Dispatch("Outlook.Application")
  newMail = obj.CreateItem(olMailItem)
  newMail.Subject = "the subject"
  newMail.HTMLBody = email
  newMail.To = "my_email@co.com;outside_email@co.com"
  attachment1 = "C:\output.png"
  newMail.Attachments.Add(attachment1)
  newMail.Send()
  </code></pre>
  
  <p>Any help greatly appreciated!</p>