PowerShell Mail Profile

Minimum PowerShell version


Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name sthMailProfile

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Sergey Vasin


(c) Sergey Vasin. All rights reserved.



New-sthMailProfile Get-sthMailProfile Send-sthMailMessage Remove-sthMailProfile


Desktop Core


This module has no dependencies.

Release Notes

## 1.2

- New-sthMailProfile -Credential parameter in addition to PSCredential object now supports two-element array value, for example @('UserName','Password').
- New-sthMailProfile -Subject parameter can be used to define subject in the profile.
- New-sthMailProfile -DoNotSendIfMessageIsEmpty parameter can be used to specify that if message body is empty, the message should not be sent.

## 1.1

- All module functions now support -ProfileFilePath parameter.

## 1.0.1

- New-sthMailProfile -Encoding parameter in addition to encoding name, for example 'unicode', now also supports numerical code page value, for example '1200'.

Version History

Version Downloads Last updated
1.2 (current version) 163 11/22/2018
1.1 14 11/7/2018
1.0.1 10 11/4/2018
1.0 28 8/31/2018