added code to send emails on task save callback