Wrote a function to email the submission