Functions/PoShMon.MessageFormatters.Html.Monitoring/New-HtmlHeader.ps1
Function New-HtmlHeader { [CmdletBinding()] param( [hashtable]$PoShMonConfiguration, [string]$ExtraTitle = "" ) $emailSection = '' $emailSection += '<head><title>' + $ReportTitle + '</title></head>' $emailSection += '<body style="font-family: verdana; font-size: 12px;">' $emailSection += '<table width="100%" style="border-collapse: collapse; ">' $emailSection += '<tr><td colspan="3" style="background-color: lightgray"> </td></tr>' $emailSection += '<tr><td style="background-color: lightgray"> </td><td style="background-color: #1D6097; color: #FFFFFF; Padding: 20px;"><h1>PoShMon Monitoring Report' + $ExtraTitle + '</h1></td><td style="background-color: lightgray"> </td></tr>' $emailSection += '<tr><td style="background-color: lightgray"> </td><td style="background-color: #000000; color: #FFFFFF; padding: 10px; padding-left: 20px">' + $PoShMonConfiguration.General.EnvironmentName + ' Environment</td><td style="background-color: lightgray"> </td></tr>' $emailSection += '<tr><td style="background-color: lightgray"> </td><td style="background-color: lightgray; padding-top: 20px;">' #start main body return $emailSection; } |