title: embedded HTML results in the email body is not as expected
body: <p>We pull files from a third-party application everyday and send send out an email with all the files copied to the relevant person on the other side. When I generate the html file my results are as expected but when I try to embed the same results as html in the body of my e-mail I just get numbers instead of the folder path &amp; file name. Not sure what's causing this. Please guide me.</p>
  
  <pre><code>$head = @"
  &lt;Title&gt;Files in folder&lt;/Title&gt;
  &lt;style&gt;
  Body   { font-family: "Verdana", "Geneva", sans-serif; background-color:#F0E68C; }
  table  { border-collapse:collapse; width:50% }
  td     { font-size:12pt; border:1px #0000FF solid; padding:5px 5px 5px 5px; }
  th     { font-size:14pt; text-align:left; padding-top:5px; padding-bottom:5px; background-color:#0000FF; color:#FFFFFF; }
  name tr{ color:#000000; background-color:#0000FF; }
  &lt;/style&gt;
  "@
  
  #file path
  $path = "D:\\Temp"
  $root = (Get-Item $path).FullName
  
  #output html as string
  $html = Get-ChildItem $root -recurse -include *.xlsx, *.docx, *.txt, *.csv | 
          where { $_.PSIsContainer -eq $false } | % 
          {
          $fPath = $_.FullName.Remove(0, $root.Length + 1)
          Write-Output "&lt;a href=`"$fPath`"&gt;$fPath&lt;/a&gt;&lt;br /&gt;" 
          } | ConvertTo-Html -Head $head | Out-String
  
  #email
  $email = @{
   To = "userA@domain.com"
   from = "userB@domain.com"
   BodyAsHtml = $True
   Body = $html
   Subject = "Files in the folder"
   SmtpServer = "mailserver"
  }
  
  Send-MailMessage @email
  </code></pre>