title: Insert Python Objects when sending email using Outlook
body: <p>Simple question as the title：How can I insert or copy a Python object(like a matplotlib figure object just generated, not saved into the hard drive) into an email sending from Outlook? </p>
  
  <p>I'm not using SMTP module but operate Outlook via win32com.client. Some of current codes are as follows:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  import win32com.client
  import matplotlib.gridspec as gridspec
  
  fig = plt.figure(figsize = (20,30))
  gs = gridspec.GridSpec(5,2)
  
  ax = plt.subplot(gs[0,0])
  ax.plot(range(10))
  
  obj = win32com.client.Dispatch("Outlook.Application")
  newMail = obj.CreateItem(olMailItem)
  newMail.Subject = "Daily Report of Volatility"
  newMail.HTMLBody = "&lt;h1&gt; \
                          This is a test \
                      &lt;/h1&gt; \
                      &lt;p&gt; \
                          I am a email-robot \
                      &lt;/p&gt; \
                      "
  
  newMail.To = "Kyle"
  
  newMail.display()
  </code></pre>
  
  <p>Just want to insert the 'fig' object into the mail body.</p>
  
  <p>Will appreciate any illustration! Thanks a lot!</p>