How to install the appropriate option selected value and pass it to the mail after