Click Button And File Sent, i.e. Browser Downloading?

You can set headers dynamically by setting msg.headers. In the flow in this thread, there is a function "Set Headers" - see that for an example.

Sorry I don't have the time to read the rest of your post, hopefully someone else will chime in.