title: MimeKit add attachments to a message loaded from mht file
body: <p>Hi We are trying to develop a mail sending system using MailKit. We have a set of Email Templates which are created using WORD and saved as MHTML files. The whole thing is working fine, when we use MailKit to create a MimeMessage from the MHT file. </p>
  
  <p>But post creating this message, I am not able to see a way of adding attachments to this.</p>
  
  <p>Currently we are trying the following.</p>
  
  <pre><code>private void SendEmail(string templatePath, List&lt;string&gt; attachments)
      {
          // Load the MHT Template
          var mimeMessage = MimeMessage.Load(templatePath);
  
          mimeMessage.From.Add(new MailBoxAddress("test@Test.com"));
          mimeMessage.To.Add(new MailBoxAddress("test@Test.com"));
  
          foreach (var attachment in attachments)
          {
              var fileAttachment = new MimePart()
              {
                  ContentObject = new ContentObject(File.OpenRead(Path.Combine(attachment), ContentEncoding.Default),
                  ContentDisposition = new ContentDisposition(ContentDisposition.Attachment),
                  ContentTransferEncoding = ContentEncoding.Binary,
                  FileName = Path.GetFileName(attachment)
              };
  
              // Attachments is a read only Enumerable here.
              mimeMessage.Attachments.Add
          }
  
      }
  </code></pre>