Customizations to email format type and HTML mails

Addition to PR #48