I am trying to figure out how to drag and drop an email from Outlook 2010 into my .NET application. I've seen quite a few articles, most with very complex solutions. My thought is it shouldn't be that complex ... but I could be wrong.
Any help would be much appreciated!
A easier solution has been posted here: Get body from Outlook email [Drag’n’Drop]
Outlook.Application outlook = new Outlook.Application();
Outlook.Explorer oExplorer = outlook.ActiveExplorer();
Outlook.Selection oSelection = oExplorer.Selection;
foreach (object item in oSelection)
{
Outlook.MailItem mi = (Outlook.MailItem)item;
Console.WriteLine(mi.Body.ToString());
}
It uses Microsoft.Office.Interop.Outlook.dll
. (It's on NuGet with the same name)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With