title: Parse body of msg (email) file
body: <p>I need to parse the body of emails to get the contents of a table out of each email. I would like to use PowerShell to do this. I have tried this code:</p>
  
  <pre><code>Get-ChildItem "C:\Users\mmartindale.NTSERVER\Desktop\delreg temp\msg" -Filter *.msg |
      ForEach-Object {
          $outlook = New-Object -comobject outlook.application
          $msg = $outlook.Session.OpenSharedItem($_.FullName)
          $msg | Select body | ft -AutoSize
      }
  </code></pre>
  
  <p>But all I get is an abbreviated output like this:</p>
  
  <pre>Body
  ----
  This is approved for Deal Reg...</pre>
  
  <p>How do I output this as an object that I can loop through?</p>