Email-HTML-Logs

21.12.8.1

Sends the contents of HTML files as e-mails.

To send a log file via e-mail using ssl and an SMTP password you must generate an encrypted password file.
The password file is unique to both the user and machine.

To create the password file run this command as the user and on the machine that will use the file:

$creds = Get-Credential
$creds.Password | ConvertFrom-Sec
Sends the contents of HTML files as e-mails.

To send a log file via e-mail using ssl and an SMTP password you must generate an encrypted password file.
The password file is unique to both the user and machine.

To create the password file run this command as the user and on the machine that will use the file:

$creds = Get-Credential
$creds.Password | ConvertFrom-SecureString | Set-Content C:\scripts\ps-script-pwd.txt

Show more

Installation Options

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

Install-Script -Name Email-HTML-Logs -RequiredVersion 21.12.8.1

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

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

Owners

Copyright

(C) Mike Galvin. All rights reserved.

Package Details

Author(s)

  • Mike Galvin Contact: mike@gal.vin / twitter.com/mikegalvin_ / discord.gg/5ZsnJ5k

Tags

Email HTML files logs

Functions

Get-DateFormat Write-Log

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
23.4.28 24 4/28/2023
22.6.2 36 6/13/2022
21.12.8.1 (current version) 27 12/8/2021
21.12.8 12 12/8/2021
20.3.19 60 3/19/2020