title: Embed image into outlook email
body: <p>I want to embed images saved in local directory into an outlook email. Have defined a function to do that and also added the html according. However, the image doesn't come up. Not an issue with the file path as I've already checked that it's working. What did I do wrong?</p>
  <pre><code>def Emailer(text, subject, recipient, cc):
      import win32com.client as win32
      import os
  
      outlook = win32.Dispatch('outlook.application')
      mail = outlook.CreateItem(0)
      mail.To = recipient
      mail.CC = cc
      mail.Subject = subject
      mail.HtmlBody = text
      mail.Display(True)
  
  MailSubject = &quot;Daily Report for &quot; + date_slash
  MailInput =&quot;&quot;&quot;
  
  &lt;div&gt;
      &lt;img src={}&gt;&lt;/img&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;p&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;img src={}&gt;&lt;/img&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;p&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;img src={}&gt;&lt;/img&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;p&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;img src={}&gt;&lt;/img&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;p&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;img src={}&gt;&lt;/img&gt;
  &lt;/div&gt;
  &quot;&quot;&quot;
  </code></pre>
  <p>MailInput = MailInput.format(date_slash, sum_path, ovdv_path, cot_path, rub_path ,pnl_path)
  MailRecipient =&quot;xxx@yyy.com;&quot;
  MailCc = &quot;xxx@yyy.com;&quot;</p>