Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars1015
Forks112
Open issues54
PowerShell Gallery downloads7576901
Releasev1.41.0
Language: PowerShell Updated: 2026-08-10T20:00:10.0000000+00:00

Curated Examples

Example Emailbodybasic

Source-owned example maintained with PSWriteHTML.

$Table = (Get-Process | Select-Object -First 2 -Property Name, BasePriority, Company, CompanyName)

$Body = EmailBody -FontSize 12px -FontFamily 'Tahoma' {
    EmailText -Text 'This should be font 8pt, table should also be font 8pt' -FontSize 8pt
    EmailTable -DataTable $Table -HideFooter {
        EmailTableCondition -Name 'Name' -Operator eq -Value 'svchost' -BackgroundColor TeaGreen -FailBackgroundColor Salmon -Inline
    }
}

Send-MailMessage -Body $Body