How to send notifications emails based on the workflow?