Adding mail items to the Sent Items folder

  • Thread starter Thread starter PromisedOyster
  • Start date Start date
P

PromisedOyster

Does anyone know if it is possible to programmatically add MSG files to
the 'sent items' folder. Ideally, these messages would look exactly
like they had been sent via Outlook. (ie saying the message has been
sent).

Additionally, no warnings are to be presented to the user (eg the
Microsoft security warnings).
 
If they´re stored in the file system then load the files with
CreateItemFromTemplate, and move them into the SentItems folder.

You could use OutlookSpy (www.dimastr.com) to see which fields need to
be set manually (e.g. PR_CLIENT_SUBMIT_TIME) and if they can be set at
all or are read-only (e.g. PR_CREATION_TIME).
 
Note that CreateItemFromTemplate creates a message in an unsent state and
does not set any sender/receiver related properties.
Extended MAPI or Redemption are the only two alternatives as CDO 1.21 does
not handle the MSG files.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top