Added templating system for email