Powershell HTML没有';t格式

Powershell HTML没有';t格式,powershell,parsing,html-parsing,Powershell,Parsing,Html Parsing,我有一个脚本,其中有以下行: $body += "The file " + $item.Name + " is reaching $MaxSize GB! <br> Current Size: <b>" + $SizeInGb.ToString(".00") + " GB </b> <br />"+ "Path to file: " + $Path + "<br /> <br />" 您需要在Send MailMessa

我有一个脚本,其中有以下行:

$body += "The file " + $item.Name + " is reaching $MaxSize GB! <br> Current Size: <b>" + $SizeInGb.ToString(".00") + " GB </b> <br />"+ "Path to file: " + $Path + "<br /> <br />" 

您需要在Send MailMessage中包含
-BodyAsHtml

Send-MailMessage -To "test@ds.test" -From "tesbetest@test.test" -Subject $subject -Body $body -BodyAsHtml -SmtpServer 192.168.16.18

您需要在Send MailMessage中包含
-BodyAsHtml

Send-MailMessage -To "test@ds.test" -From "tesbetest@test.test" -Subject $subject -Body $body -BodyAsHtml -SmtpServer 192.168.16.18
Send-MailMessage -To "test@ds.test" -From "tesbetest@test.test" -Subject $subject -Body $body -BodyAsHtml -SmtpServer 192.168.16.18