Functions/PoShMon.Notifications.Email.Exceptions/New-EmailExceptionBody.ps1
Function New-EmailExceptionBody { [CmdletBinding()] Param( [System.Exception]$Exception, [string]$Action = "monitor" ) $emailBody = "" $emailBody += "An exception occurred while trying to $Action the environment.`r`n" $emailBody += "Details: $($Exception.ToString())" return $emailBody } |