# Email Body Basic

Email Body Basic on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML)

Stars**1025**

Forks**114**

Open issues**0**

PowerShell Gallery downloads**7576901**

Release**v1.45.0**

Language: PowerShell Updated: 2026-11-19

Curated Examples

An example script from the PSWriteHTML repository.

- Source repository: [https://github.com/EvotecIT/PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML)
- Example group: `Example-Emails`

```powershell
$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
```

<!-- PowerForge markdown artifact sha256:1AC79D6D65F7239F62858E01355482CE5A2FFD569DA81735EB811847C7BE585D -->
