Switch to using templates for email notifications