PowerShell Display Table In HTML Email

后端 未结 7 2382
春和景丽
春和景丽 2021-01-02 12:17

Ok, this may have been answered, but I\'m new and trying to learn, so I guess I\'m not \"getting\" it. I have a variable that contains a table of information (I got it from

7条回答
  •  半阙折子戏
    2021-01-02 12:32

    You can try (not tested):

    $message.Body = $message.Body + ($DataSet.Tables | format-Table -auto |  convertto-html)
    

提交回复
热议问题