The purpose of a mail template is to allow for intricate and formatted emails by using HTML. A template is an HTML file, which contains one or more replacement tokens to embed workflow-specific data into the body of the email. This information might include an account number, customer name, or phone number.