How do I set up an email notification that will change the email address based on conditions?