mirror of
https://github.com/tsmagnum/Hyper-V-Report.git
synced 2026-04-17 23:54:05 +02:00
Bug in Functions.ps1 preventing the import of Send-MailKitMessage module fixed
This commit is contained in:
committed by
GitHub
parent
c7e6faddb7
commit
6f20b994ea
@@ -558,9 +558,10 @@ function SendEmailReport-Mailkit
|
||||
if (!(Get-Module -ListAvailable -Name "Send-MailKitMessage"))
|
||||
{
|
||||
Write-Host -ForegroundColor Yellow "Send-MailKitMessage module missing, installing..."
|
||||
Install-Module -Name "Send-MailKitMessage" -Scope CurrentUser -Force
|
||||
Import-Module -Name "Send-MailKitMessage"
|
||||
Install-Module -Name "Send-MailKitMessage" -Scope CurrentUser -Force
|
||||
}
|
||||
|
||||
Import-Module -Name "Send-MailKitMessage"
|
||||
|
||||
$UseSecureConnectionIfAvailable = $true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user