Some tips for me and other

Powershell + CSS in the tables

Not all CSS style instructions work in Outlook.

There some tricks to colorize tables:

Zebra in the table

$Body = $Body -replace '(?.)\r\n(?.)','${first}${second}'

Replace in the table started from 3 to red and less to green

$Body = $Body -replace '(?[3-9][0-9]{1,})(?.)','${first}${second}' -replace '(?[1-2][0-9]{1,})(?.)','${first}${second}'

Simple replace

$Body = $Body -replace <td>1</td>,<td bgcolor=#333>1</td>

Comments are currently closed.