Define emails with classes and use templates for HTML emails.