Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 25th, 2004, 01:01 PM
Registered User
 
Join Date: Feb 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default object to capture Outlook email

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?
 
Old February 27th, 2004, 09:39 AM
Authorized User
 
Join Date: Aug 2003
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old February 27th, 2004, 09:41 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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)?

 
Old February 27th, 2004, 01:33 PM
Registered User
 
Join Date: Feb 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!
 
Old April 21st, 2006, 05:45 AM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook email through Access desireemm Access 1 August 26th, 2005 11:31 AM
How to capture sender email address (from) Axxess Access VBA 0 July 26th, 2005 04:52 AM
Outlook Email Fomatting roguedog Access 1 February 1st, 2005 05:02 PM
Sending an email without Outlook SaharaWizard Pro VB 6 3 August 12th, 2004 04:15 PM
Email using Outlook Ben Access VBA 3 January 30th, 2004 05:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.