How can I conditionally send emails based on a selection?