title: HTML and Text in Python Driven Email
body: <p>I am using MIMEMultipart to send emails from Python.  The code is as follows:</p>
  
  <pre><code>sender = "EMAIL"
  recipients = ["EMAIL"]
  msg = MIMEMultipart('alternative')
  msg['Subject'] = "Subject Text"
  msg['From'] = sender
  msg['To'] = ", ".join(recipients)
  
  html = PandasDataFrame.to_html()
  part2 = MIMEText(html, 'html')
  msg.attach(part2)
  
  SERVER = "SERVER"
  server = smtplib.SMTP(SERVER)
  server.sendmail(sender, recipients, msg.as_string())
  server.quit()  
  </code></pre>
  
  <p>This inserts a Python Pandas dataframe as HTML and works fine.  Is it possible to add footnotes as text to the email body as well?  How would the code work for doing both?  Alternatively, I'm fine adding comments as HTML but more of less need some footnotes added to the email body.  </p>
  
  <p>Thanks  </p>