i have a script doing some extraction to check if there is snapshot, and show the date created, age of days..
i need to convert it to html and email out. i ran the script and the email has totally white blank body.. not sure where is wrong / well, i am also not sure if i am doing it correctly..
p.s: i edited an existing script to my own though..
Don’t forget to format the HTML. You can use OUT-GRIDVIEW to give yourself something to see, or you can get the module “OUT-HTMLVIEW”, which is basically the same thing but in an html file. Here is a snip of some HTML formatting stuff I use for some emailed reports. Obviously, you’ll not need most of this, but maybe it’ll help get you going. I keep this stuff in a global variables file and call it in the scripts using . sourcing.
$redColor = "#FF0000"
$orangeColor = “#FBB917”
$whiteColor = “#FFF”
$tableBorderColor = “#999”
$titleBackgroundColor = “#B11B2F”
$titleFontColor = “#EEE”
$bodyBackgroundColor = “#FFF”
$rowColorOdd = “#EEE”
$rowColorEven = “#B0C8FE”
#Set warning and critical thresholds to trigger the above cell color changes, useful for some types of reports.