# Email Layout

Email Layout 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: `Example-Emails`

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

if ($null -eq $Table) {
    $Table = (Get-Process | Select-Object -First 2 -Property Name, BasePriority, Company, CompanyName)
}

$Output = EmailBody -FontSize 12px -FontFamily 'Tahoma' {
    EmailLayout {
        EmailLayoutRow {
            EmailLayoutColumn -Width 600 {
                EmailImage -Source https://picsum.photos/600/100?image=14 -Width 600
            }
        }
        EmailLayoutRow {
            EmailLayoutColumn -Width 300 {
                EmailText -Text 'This should be font 8pt, table should also be font 8pt'
            }
            EmailLayoutColumn -Width 300 {
                EmailText -Text 'This should be font 8pt, table should also be font 8pt'
            }
        }
        EmailLayoutRow {
            EmailLayoutColumn -Width 300 {
                New-HTMLText -Text "Test " -Size 15pt

                New-HTMLTable -DataTable $Table -HideFooter
            }
            EmailLayoutColumn -Width 300 {
                New-HTMLText -Text "Test " -Size 15pt
            }
        }
        EmailLayoutRow {
            EmailLayoutColumn -Width 300 {
                EmailImage -Source https://picsum.photos/300/100?image=15 -AlternativeText 'picsumarry1' -Width 300
            }
            EmailLayoutColumn -Width 300 {
                EmailImage -Source https://picsum.photos/300/100?image=10 -AlternativeText 'picsumarry2' -Width 300
            }
        }
        EmailLayoutRow {
            EmailLayoutColumn -Width 50% {

            }
            EmailLayoutColumn -Width 50% {
                EmailText -LineBreak
                EmailTextBox -FontFamily 'Calibri' -Size 15 {
                    "This is some text that's preformatted with Emoji 🤷 ‍️"
                    "Adding more text, notice ths should be on next line"
                    ""
                    "Empty line above will cause a blank space. If you want to continue writting like you would do in normal email please use here strings as seen below."
                    @"
                            This is tricky but it works like one ❤
                            big line... even thou we've split this over few lines
                            already this will be one continues line. Get it right? 😎
"@
                    ""
                }
            }
        }
        EmailLayoutRow {
            EmailLayoutColumn -Alignment center {
                EmailText -FontFamily 'Calibri' -Size 15 -Text "This is some text that's preformatted with Emoji 🤷 ‍️" -LineHeight 0.5
                EmailText -FontFamily 'Calibri' -Size 15 -Text "Adding more text, notice ths should be on next line" -LineHeight 0.5
                EmailText -FontFamily 'Calibri' -Size 15 -Text "" -LineHeight 1.0
                EmailText -FontFamily 'Calibri' -Size 15 -Text "E line... even thou we've split this over few lines" -LineHeight 0.5
                EmailText -FontFamily 'Calibri' -Size 15 -Text "      already this will be one continues line. Get it right? 😎" -LineHeight 0.5
            }
        }
    }
} -Online
Save-HTML -FilePath $PSScriptRoot\Output\TestBody1.html -ShowHTML -HTML $Output
```

<!-- PowerForge markdown artifact sha256:13A5B83BB7CE9DE83A81E689CA7D257271B7B5E9B84EF79C4BF4CEA0DE713EE7 -->
