Yes, it can be done!
No, it isn’t .net code – nor AL code.
Why?
It started out as me being a little too fast when stating that you could easily download a file to the Client and attach it to Outlook without any user interaction – and as you might know that is true, but you might also know that if you go the recommended route: