title: Python how do i send multiple files in the email. I can send 1 file but how to send more than 1
body: <p>I have the following code to send a html file SeleniumTestReport_part1.html in an email in Python.
  I want to send more than 1 file in the email.  How do can i do this?</p>
  
  <p>The files I want to send are:
  SeleniumTestReport_part1.html
  SeleniumTestReport_part2.html<br>
  SeleniumTestReport_part3.html</p>
  
  <p>My code to send 1 file is:</p>
  
  <pre><code>def send_selenium_report():
      fileToSend = r"G:\test_runners\selenium_regression_test_5_1_1\TestReport\SeleniumTestReport_part1.html"
      with open(fileToSend, "rt") as f:
          text = f.read()
      msg = MIMEText(text, "html")
      msg['Subject'] = "Selenium ClearCore_Regression_Test_Report_Result"
      msg['to'] = "4_server_dev@company.com"
      msg['From'] = "system@company.com"
  
      s = smtplib.SMTP()
      s.connect(host=SMTP_SERVER)
      s.sendmail(msg['From'], msg['To'], msg.as_string())
      s.close()
  </code></pre>
  
  <p>Thanks,
  Riaz</p>