# New-HTMLToast

Creates a new HTML toast notification with customizable text, icons, and colors.

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/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

Creates a new HTML toast notification with customizable text, icons, and colors.

## Syntax

```
New-HTMLToast
[-BarColorLeft <String>]
[-BarColorRight <String>]
[-IconColor <String>]
[-IconSize <Int32>]
[-IconSolid <String>]
[-Text <String>]
[-TextColor <String>]
[-TextHeader <String>]
[-TextHeaderColor <String>]
[<CommonParameters>]
```

[#](#method-new-htmltoast-string-string-string-int32-string-string-string-string-string)

Parameter set: `FontAwesomeSolid`

```
New-HTMLToast
[-BarColorLeft <String>]
[-BarColorRight <String>]
[-IconColor <String>]
[-IconRegular <String>]
[-IconSize <Int32>]
[-Text <String>]
[-TextColor <String>]
[-TextHeader <String>]
[-TextHeaderColor <String>]
[<CommonParameters>]
```

[#](#method-new-htmltoast-string-string-string-string-int32-string-string-string-string)

Parameter set: `FontAwesomeRegular`

```
New-HTMLToast
[-BarColorLeft <String>]
[-BarColorRight <String>]
[-IconBrands <String>]
[-IconColor <String>]
[-IconSize <Int32>]
[-Text <String>]
[-TextColor <String>]
[-TextHeader <String>]
[-TextHeaderColor <String>]
[<CommonParameters>]
```

[#](#method-new-htmltoast-string-string-string-string-int32-string-string-string-string-2)

Parameter set: `FontAwesomeBrands`

## Description

This function generates an HTML toast notification with options to set the text, text colors, icons, icon size, and various color settings for different elements of the notification.

## Examples

### Example 1

```powershell
New-HTMLToast -TextHeader "Notification" -Text "This is a sample notification" -IconBrands "fa-github" -BarColorRight "Red"
Creates a new HTML toast notification with a header "Notification", main text "This is a sample notification", GitHub icon, and a red color for the right bar.
```

### Example 2

```powershell
New-HTMLToast -TextHeader "Alert" -Text "Alert message here" -IconBrands "fa-exclamation-triangle" -IconColor "Orange" -BarColorLeft "Yellow" -BarColorRight "Red"
Creates a new HTML toast notification with a header "Alert", main text "Alert message here", warning triangle icon in orange color, yellow left bar, and red right bar.
```

## Parameters

**-BarColorLeft String optional**

Specifies the color of the left bar in the notification.

**-BarColorRight String optional**

Specifies the color of the right bar in the notification.

**-IconColor String optional**

Specifies the color of the icon.

**-IconSize Int32 optional**

Specifies the size of the icon in pixels.

**-IconSolid String optionalsets: FontAwesomeSolid**

ICON SOLID

**-Text String optional**

Specifies the main text content of the notification.

**-TextColor String optional**

Specifies the color of the main text.

**-TextHeader String optional**

Specifies the header text of the notification.

**-TextHeaderColor String optional**

Specifies the color of the header text.

**-IconRegular String optionalsets: FontAwesomeRegular**

ICON REGULAR

**-IconBrands String optionalsets: FontAwesomeBrands**

Specifies the icon to be used from the Font Awesome Brands collection.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

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