How do I set up a condition to stop sending emails after something is added?