Adding mail items to the Sent Items folder

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).
 
M

Michael Bauer

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).
 
D

Dmitry Streblechenko

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top