How can I create a document with user's submission and send email to them?