Using extendable templates for email notifications