How to send different emails depending on the value?