How to receive emails when the submit button is clicked?