Subject: object to capture Outlook email
Posted By: Tiffany Post Date: 2/25/2004 12:01:43 PM
I have an Outlook email being dropped into my VB app.  I want to get that email's message as well as any attachments.  What would be the best object to capture the dropped email message in?
Reply By: tbriers Reply Date: 2/27/2004 8:39:04 AM
How about looking into the Object model of Outlook and Use VBA to do this
You can add a reference to the outlook object library and go from there.

I have never done anything like this before but it looks like a good place to start.

Greetz
Reply By: jaucourt Reply Date: 2/27/2004 8:41:01 AM
Depends how it is 'dropped in'. Are you accessing a mailbox and trying to read emails from an exchange server - in which case you'll have to use MAPI to get the required functionality - or are you trying to read a .msg file (an email saved to disk)?

Reply By: Tiffany Reply Date: 2/27/2004 12:33:21 PM
Thanks for the replies!  The email is dragged from Outlook to a VB6 label field.  

Initially I was looking at capturing the email with OLEDragDrop into a DataObject.  However with a DataObject I can only get a certain number of Outlook fields such as sender's name, date/time received, and subject.  I was hoping to get the Outlook email's EntryID.  Then I would do the look-up and get the message and attachments.

Do you know what object would capture an email's EntryID?  

Other than OLEDragDrog what other method could I use?

******************************
My other option is to parse the DataObject and get the available fields.  Then do a comparision with Outlook.  

Is there a way to parse a DataObject?

Thanks for the help!
Reply By: MSG.Expert Reply Date: 4/21/2006 5:45:06 AM
MSG Files:

Priasoft has several MSG related products. http://www.priasoft.com

In particular, they have a MSG file parsing library that gives developers access to all the properties of a .msg file, without outlook.

They also have an export library that works with the MSG library for exporting msg files to other formats, like PDF, TIF, and HTML.

For PST files, they have a couple of command line tools that allow extraction of messages to MSG, again without requiring outlook, and it supports both ANSI and UNICODE pst files.  There is also the reverse, a MSG to PST utility.

They also have a viewer product that looks very similar to outlook 2003 with regards to the User Interface. The viewer can view, search, print, and export msg files.

Lastly, they just release a free ViewOnly viewer here:  http://www.priasoft.com/msgview.exe


Regards,
the MSG Guru, Eriq VanBibber

ALT160 - Do you see me?

Go to topic 25552

Return to index page 307
Return to index page 306
Return to index page 305
Return to index page 304
Return to index page 303
Return to index page 302
Return to index page 301
Return to index page 300
Return to index page 299
Return to index page 298