how to send email based on selection