954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How get mail outlook data and import it to Windows Forms?

Hello there, I'm currently studying a bit of mail data manipulation and I am having trouble with the concept to importing mail data to windows forms. As what I research right now, FileContents and FileGroupDescriptor could be used. I've been googling this topic already and I haven't found any good tutorials.

murderotica
Junior Poster
171 posts since Aug 2008
Reputation Points: 7
Solved Threads: 2
 

sort of depends, what version of outlook are you using? And are you using exchange?

dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143
 

Thanks for the reply. I'm using 2003 and yes, exchange server.

murderotica
Junior Poster
171 posts since Aug 2008
Reputation Points: 7
Solved Threads: 2
 

I think Visual Studio Tools for Office could be helpful too, but I still don't have background for this tool.

murderotica
Junior Poster
171 posts since Aug 2008
Reputation Points: 7
Solved Threads: 2
 

You can just link to a copy of outlook and read data if thats what you need - there are a ton of examples on the net for it.

If you add Outlook as a using you can access all the things you could ever want from a mailbox

LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

Can you give me a link of samples? I've been looking for samples the whole day and can't find one. It seems I'm having a bad luck with google Y_Y. Thanks for the reply.

murderotica
Junior Poster
171 posts since Aug 2008
Reputation Points: 7
Solved Threads: 2
 
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

I already got this sample. Thanks again. Now I'm having trouble installing my VSTO. It says that it requires sp1 MS Office. I've already installed sp1 update of MS Office but I cannot install the VSTO. *sigh*

murderotica
Junior Poster
171 posts since Aug 2008
Reputation Points: 7
Solved Threads: 2
 

BTW, the input of data to the forms is through dragging and dropping. I have already managed to drag and drop outlook data which is saved as an outlook file on the desktop, but I can't drag and drop it yet from outlook to my forms. I'm still figuring it out. Any ideas how to drag and drop it? Thanks :)

murderotica
Junior Poster
171 posts since Aug 2008
Reputation Points: 7
Solved Threads: 2
 

what file extension does it have?

LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

I'm sorry if my query has a little confusion. What I meant was to drag and drop an outlook mail from the outlook itself then get all the data from that mail (contents, sender, receiver, mail id). Just like dragging and dropping a mail in the outlook to the MS excel. I think the file name for outlook mails is .msg.

murderotica
Junior Poster
171 posts since Aug 2008
Reputation Points: 7
Solved Threads: 2
 

OK, but thats a propriatary format, you'll need to see what data outlook actually sends you when you perform the action and work from there.

LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

I have already installed my VSTO, now I'm having a hard time figuring it out, on how to use it to manipulate (drag and drop) mails in the outlook.

murderotica
Junior Poster
171 posts since Aug 2008
Reputation Points: 7
Solved Threads: 2
 

After hours of freaking research, I have found a way to drag and drop mail items to my application. Now my problem is how to get the mail ID and header of that mail item.

murderotica
Junior Poster
171 posts since Aug 2008
Reputation Points: 7
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You