473,847 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Outlook Email drag and drop

Problem: I need to allow my users to drag an email out of Outlook and
drop it on a winform -- from there, I need to get the text of that
email (not just the sender and subject) -- from there I'll save it
myself in a database. This is to allow them to track all the
correspondance that happens between themselves and a customer.

I've found code examples of how to do this with an ATTACHMENT out of
Outlook, but not the email message itself (even though several
solutions claim to do that, they don't -- they just ignore messages and
work great on attachments).

Can anyone point me to where I might find such a code snippet?

I've tried the soluction posted here:

That works great for attachments, but doesn't work at all for the full

Note -- I don't care about email WITH attachments...u nless they drag
the attachment over manually, we aren't going to capture that, only the
body text of the email -- in either text, rich text, or html format.


May 16 '06 #1
0 1758

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Karsten Schramm | last post by:
Hi, if I drag an Outlook.MailItem to a Windows-Explorer window a <subject>.msg file will be created. Now I try to drag & drop a mail item to my own WinForm app. Unfortunately it doesn't work. In the "drop event" are eight DataFormats (e.Data.GetFormats()) but the important one (imho) "FileContents" is "Nothing"/"null".
by: Johann Wagner | last post by:
Hello! I want to drop an email in my C# application. I get the drop event and the dataobject. But i cannot interpret the data in the dataobject. So i cannot get the email. I have found a code sample for getting appendix via drag&drop, but this doesn't work for the email, too. Can somebody give me a tip how i can get the email? Regards, Johann
by: David Anderson | last post by:
Does anyone know how to drag&drop a message with attachments from Outlook (2002 or 2003) in to a VB.Net windows form. This is really stumping me. I've spent a fair amount of time trying to find a solution on the internet, with limited success. I do have code to drag an attachment directly from Outlook to a form, but not a whole message. I want to have access to an object reprensenting the message so I can bust out the message and...
by: daveward10 | last post by:
I want to be able to drag and drop an Outlook mail message (Outlook 2003) onto a windows form (C# 2003) so that my application can then save the file (in the same was as if I were to drag and drop on the desktop). Anyone able to help me with how to achieve this?
by: Jeff | last post by:
Ok you can drag and drop from Outlook Express to the desktop and get an EML file on the desktop. Anyone have any idea how I can drag and drop from OE to my application and get an EML file? Thanks Jeff
by: Ellen | last post by:
Hi! Please point me to the correct discussion if I am off base. We are beta testing a new Dot Net Framework application that allows us to upload documents of different file types for online storage with each of our transactions. We can easily drag and drop email attachments to the new application, but we cannot seem to drag and drop an email msg from Outlook. I suspect this may have something to do with security. We are able to export...
by: =?Utf-8?B?QWxleGFuZGVyIEtvbW1lcg==?= | last post by:
Hi, I´m developing a feature in a application with the following specification: In the first step, the application should be able to store messages out of outlook, which are dropped on a tree view. This message should be stored as ..msg file. In future, this should be able for alle objects of outlook. If a drop a message out of outlook, I can get the file name of the message
by: jimbo986 | last post by:
Outlook Email drag and drop -------------------------------------------------------------------------------- Problem: I need to allow my users to drag an email out of Outlook and drop it on a winform -- from there, I need to get the text of that email (not just the sender and subject) -- from there I'll save it myself in a database. This is to allow them to track all the correspondance that happens between themselves and a customer. ...
by: cold80 | last post by:
Hi guys, maybe it's a silly question, but I'm quite stuck with it... I've tried to implement a drag and drop operation from inside my c# program. What I would like to do is allow to copy a link to an Outlook message from my application. So I use: button1.DoDragDrop("http://www.google.com", DragDropEffects.Copy); The text string is copied correctly but Outlook doesn't recognize it as a link. I have tried to use the HTML fragment for a...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.