Format emails nicely.

Added tests to cover that.