In our web application development project, we need a feature that lets the users to email themselves an attachment (~1MB) which resides on the server.
I was considering two alternatives.
Upon clicking on the email button
Download the attachment to local folder and attach it to a new email window in outlook. The flaw with this approach is that we are assuming user has Outlook installed on their machine. I am also doubtful if browsers others than IE support this feature of being able to open Outlook message and attach a file.
Send the attachment from middleware code to the user using a programmatic API for sending email. The downside of this approach is that it doesn't give the flexibility to the user to use the out of the box Outlook features such as being able to add more recipients / cc / bcc, edit the message etc, though it is possible to let the user do the same by providing a UI which lets them do all that.
What would be the recommended approach to this requirement?