Color coding traceback in the SMTPHandler and sending HTML
===

I've been wanting to make my exception e-mails a bit easier to read / navigate and I think that if I could color code the output, noticeably the traceback and some JSON prints, it would make my life much easier.

So this question is twofold:

1.) How can I setup my formatter for my SMTPHandler so that it spits out HTML, and have the SMTPHandler send the e-mails as HTML and not just plain text?

and

2.) Do you know of any libraries that would make it easy to take tracebacks and/or JSON and color code the output into HTML?

Any help much appreciated. Thanks!