Email functionality added to edit task