Refactor email function
Currently, plugins that want to send emails have to contain a log of boilerplate code that handles
- translation
- plaintext body + placeholders from config or templating
- configured subject vs translation key
This is a proposal for a much simpler sendEmail method that handles pretty much everything