No JS required. After adding a button go to the Actions tab and add a MouseUp action with the "Submit a form" command.
If you want the files to be emaild, as the URL you can enter something like:
mailto:me@server.com
Select the other settings and you're done.