How can I send an email based on an input selected?