How to submit a form using the email variables on the form