formatters/mail.psm1
function Format-MailDefault { param( $Record ) $txt = @" <b>Level :</b> {0}<BR> <b>UserName : </b>{1}<BR> <b>ComputerName : </b>{2}<BR> <b>Content : </b>{4}{3} "@ -f ($Record.Level, $env:USERNAME, $env:COMPUTERNAME, $Record.Message, ("`t"*($Record.Indent - 1)) ) $txt } |