Add support for specifying plain or html for mail bodies.