Folks, I know there have been lots of threads about forcing the download dialog to pop up, but none of the solutions worked for me yet.
My app sends mail to the use
If you're trying to get the file to download every time, change the content type to 'application/octet-stream'.
Try it without the pragma statement.