1. If you want to create an MSG file first, populate it with the properties
and then import it back into Outlook, why do you need an MSG file? Wouldn't
it be easier to create a message directly in Outlook and populate it with
properties from your DB?
2. Outlook uses Extended MAPI to create/access MSG files. You can do the
same if you were using Extended MAPI from C++/Delphi.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
Hi
Thanks for your reply
1) How do you set properties and import a mail item back to inbox? Again i
need to set read-only properties like senderName, received date?
2) How to create MSG file from Extended MAPI?
Anushya
> 1. If you want to create an MSG file first, populate it with the properties
> and then import it back into Outlook, why do you need an MSG file? Wouldn't
[quoted text clipped - 28 lines]
> > Thanks
> > Anushya
Dmitry Streblechenko \(MVP\) - 02 Feb 2004 18:01 GMT
1. You can't do that in OOM, only in Extended MAPI, CDO 1.21 or Redemption.
Namespace.CreateItemFromTemplate() is the closest thing to an import in
Outlook Object Model, but it does not work reliably.
2. In Outlook Object Model call MailItem.SaveAs(path, olMsg). In Extended
MAPI, see Q171907 on MSDN.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> Hi
> Thanks for your reply
[quoted text clipped - 38 lines]
> > > Thanks
> > > Anushya