I’m afraid I can’t take the credit for this one – my colleague Jagan came up with this neat solution to allow a user to attach a document from a SharePoint document library straight to a new Outlook email message. Don’t ask me why MS don’t include this OOB – I get asked about it so often…
The problem with using a document library to store documents is that it can be tricky to get a document out and email it outside of the organisation. It’s not always practical to setup extranet sites etc etc – sometimes you just need to email a document out.
Usually, you’d have to download the document from the library to your desktop, then start a new email, then attach the document.
This solution is not *perfect*, and it will not work in all scenarios – but it will work in most.
You just need to create a feature with a CustomAction block, shown below:
When you activate the feature, you should see an extra menu option in
your Edit Control Block (ECB) dropdown on each document in your library:
This will use the Outlook ActiveX control to stream the document to a new
As I said – there may be some limitations with this approach:
1. Only one document can be added to each email (in this version – it would be possible to modify the above to cater for a selection of documents)
2. Since it’s ActiveX – cross browser support is v.sketchy – IE only really
3. It’ll work best in standard internal ‘intranet’ environments, where the authentication is integrated
… but, that’s it. Give it a go in your projects and let me know how it turns out.
If you’d like me to wrap it into a WSP for download leave a comment…