1
votes

I am developing a web application that must allow a user to drag and drop an email message from outlook into something similar to a drag and drop upload file component. My application must then take the email and parse it into the MSSQL database.

I have been looking around for answers and found this thread: Drag and Drop directly from Outlook to a webform

The thread is half not helping as a drag and drop component dont seem to accept a email message. Can anyone help me with the parsing problem as well? I am using c# asp.net with mssql.

Thank you

1
Take a look at this CodeProject example using the IDataObject interface - SliverNinja - MSFT
Thanks SilverNinja. I had a look at this and I can see where you are coming from but, I think I found the issue for the file not uploading. I still need a simple solution to parse an outlook message. Remember I am using asp.net. - Werner Van Tonder

1 Answers

0
votes

The primary issue with Outlook and drag-n-drop to a browser is that Outlook is a bit lazy and only provides drag data in text/plain mimetype format.

The only way you can support drag-n-drop from Outlook to ASP.NET is using a plugin (ActiveX, Silverlight, or Flash). Other alternatives would be to use a thick client (WPF, WinForms, etc.) which supports native drag-n-drop or building an Outlook Addin that allows uploading directly to your web application or data store.

See this related SO post regarding drag-n-drop from Outlook to a web form.