Specifically emails are created:
- when a claim or request is submitted, an email is sent to the approver.
- when a claim or request is approved or rejected, an email is sent to the requester.
- when a claim or request is approved and a more senior approver now needs to approve the request or claim, an email is sent to the senior approver.
- when a line is booked from the booking queue, an email is sent to the requester.
- when a claim or request is submitted but their manager doesn’t exist or doesn’t have an email address. In this case an email warning is sent to the administrator. This serves as a notice to the administrator that configuration is required for a manager user.
To generate these emails we use an open source framework called MVCMailer. This is an emailing engine based on ASP.NET MVC and uses the Razor templating engine for its email templates. Customizing the emails generated by the system involves tweaking the HTML templates in these Razor views. The templates are located in the <website-folder>/Views/ExpenseMailer/ folder under the web application root.
The current set of email templates generate a fairly generic set of nicely formatted emails. Still, we expect people to want to customize these so we’ve based the emails on Microsoft’s Razor templating engine.