title: Convertto-HTML outputting pre/post content showing up as System.String[] instead of actual content
body: <p>I am trying to use Powershell to output a table with some pre/post content and then email it, but the pre/post content is showing up in the email as "System.String[]." The rest of the content seems fine, and if I output the HTML string to the console, everything looks fine.</p>
  
  <pre><code>function Send-SMTPmail($to, $from, $subject, $smtpserver, $body) {
      $mailer = new-object Net.Mail.SMTPclient($smtpserver)
      $msg = new-object Net.Mail.MailMessage($from,$to,$subject,$body)
      $msg.IsBodyHTML = $true
      $mailer.send($msg)
  }
  
  $Content = get-process | Select ProcessName,Id
  $headerString = "&lt;table&gt;&lt;caption&gt; Foo. &lt;/caption&gt;"
  $footerString = "&lt;/table&gt;"
  $MyReport = $Content | ConvertTo-Html -fragment -precontent $headerString -postcontent $footerString
  
  send-SMTPmail "my Email" "from email" "My Report Title" "My SMTP SERVER" $MyReport
  </code></pre>
  
  <p>Shows up in my email as:</p>
  
  <pre><code>System.String[]
  ProcessName Id
  ...             ...
  System.String[]
  </code></pre>
  
  <p>Doing an out-file and then an invoke-item has the same results as sending the email...</p>