Fix broken HTML in message type for emails