How do I access an attachment (code behind) from the Em Content Type?
Hello -
I am using OnePlaceEmail for capturing emails. Works great.
I am displaying these on a custom Sharepoint page. Works great.
I would like to access the attachments that are embedded in the messages in the custom Sharepoint page.
How do I go about doing this?
Thanks,
Rob
-
Ilia Zhukov commented
Hi Rob,
thanks a lot for the confirmation and providing the link to the Codeproject.
Regards,
Ilia.
-
Robert Combis commented
So I got this to work,
http://www.codeproject.com/Articles/32899/Reading-an-Outlook-MSG-File-in-C
Need to download this and recompile it as a class library. Also make sure you add a strong name to it or Sharepoint won't like the dll.
But it works very well for parsing attachments out of the msg file.
If anyone wants more info, let me know.
Cheers,
Rob
-
Robert Combis commented
James/Ilia -
Thanks for your responses. I figured as such but before I went down the road of parsing the msg file, I wanted to make sure.
Thanks again.
-Rob
-
James Fox commented
Hi Robert,
Using OnePlaceMail you can drag/drop email attachments from an email message into SharePoint (via the OnePlaceMail folders on the left navigation of Outlook). In Outlook 2010 or Outlook 2013 you can also right-click on the attachments to save into SharePoint.
When saving attachments to SharePoint the email attributes of the email the attachment comes from are also captured and promoted to the SharePoint columns.
Once an attachment is in SharePoint as an Item, the SharePoint document management capabilities are available and also the ability to use the OnePlaceMail 'Insert from SharePoint' for sending either links or attachments of the items in SharePoint.
The hope the above assists as option for meeting your requirement.
Regards,
James
-
Ilia Zhukov commented
Hello Rob,
thank you for your question.
As .msg file is already located in SharePoint this could be only done by some SharePoint solution which will parse .msg file and allow users to access attachments.
Please take a look at the following post Parse MSG files uploaded to SharePoint for some details regarding it.
As OnePlaceMail is MS Office add-in it can't help you with this task.
Regardless of this, this would be a nice enhancement to our software suite, I’ve added your idea to our backlog for further analysis and discussion. Thanks for the feedback.
Please update this topic if you have any questions. Thank you.