Added ability to override email templates