Move the example template to be within the tests

Link to it from the root instead.
Extract template loading into a new class

This rewrites the template handling adding explicit support for
utf-8 templates and for a To: field in the template.