Fix mail template to use p() for colors

Now using p() instead of print_unescaped() for colors.

Backport of 25251d4 from master