
Retreiving an Outlook msg from a file in VB
You're not really going to be able to do that. Why not just save those
messages (or copies of them) into another folder where they will
retain all their properties as Outlook MailItem's?
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
Quote:
> I have an application that traps the Item Add event on the Sent
Items
> folder. My application saves the Item (MailItem) to disk as a .msg
file.
> At a later time, I want to retreive that file into a MailItem
object. I
> cannot get
> Set ObjMsg = GetObject("C:/Mail.msg")
> to work, and the only alternative that I can find is
> Set ObjMsg = appOutlook.CreateItemFromTemplate("C:/Mail.msg")
> the problem with this is that it creates a NEW MailItem that is not
sent,
> and therefore I can view it, but I cannot Reply, or Forward...
> Any help would be appreciated...
> Regards,
> John Foster