Send emails after every state change