title: how to send a email body part through MIMEMultipart
body: <p>I am just curious to know if MIMEMultipart has any attribute in it where I can pass my email body part ... Only part I have come up with is</p>
  
  <pre><code>msg = MIMEMultipart()
  msg["From"] = emailfrom
  msg["To"] = emailto
  msg["Subject"] = "hi find the attached file"
  msg.preamble = "please PFA"
  </code></pre>
  
  <p>Is there anything like</p>
  
  <pre><code> msg["Body"] = I will add a string or a text file
  </code></pre>
  
  <p>I googled for it and found</p>
  
  <pre><code>body = MIMEMultipart('alternative')
  body.attach(MIMEText(text))
  </code></pre>
  
  <p>but it's not working in my case.</p>
  
  <p>And one more thing - how does <code>MIMEMultipart('alternative')</code> work? What functionality does it provide?</p>