# 38 Emails 03

38 Emails 03 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**115**

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: `Example38-Emails`

```powershell
Import-Module $PSScriptRoot\..\..\PSWriteHTML.psd1 -Force

$OutputHTML = EmailBody -FontFamily 'Calibri' -Size 15 {
    EmailTextBox {
        "Hello $UserNotify,"
        ""
        "Your password is due to expire in $PasswordExpiryDays days."
        ""
        'To change your password: '
        '- press CTRL+ALT+DEL -> Change a password...'
        ''
        'If you have forgotten your password and need to reset it, you can do this by clicking here. '
        "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk."
        ''
        'Alternatively you can always call Help Desk at +48 22 00 00 00'
        ''
        'Kind regards,'
        'Evotec IT'
    }
    EmailText -LineBreak
} -Online

# this allows us to see the content of HTML and use it for other purposes instead of sending emails
# We skip using Email and use use EmailBody instead which should be a bit faster if that's all we care about
$OutputHTML
```

<!-- PowerForge markdown artifact sha256:A8C3BF660A95B05AE2194B28A7003D49B5971D938DFB8C08AB6C2D723A875AD8 -->
