Place OL mailitem in Sent Items Folder

G

Guest

Hi :)
How can i programmatically place MailItem in Sent Items folder, so its
format will be the same as regular Sent items mails.
For instance, Standard toolbar in Create Mail contains Send,Save.. buttons
and in Sent Items folder mails it has Reply,Reply To All....

Thanks,
Anastacia
 
D

Dmitry Streblechenko

You can create a message in the sent state using OOM if you create a post
item (olPostItem), then change it message class back to "IPM.Note". The icon
might still be wrong (you will need to delete the PR_ICON_INDEX property).
To be able to set teh esender related info, use Extended MAPI MAPI/CDO
1.21/Redemption to set the PR_SENDER_xxx properties.

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

Guest

Thanks for the ans..
Can i set 'from','to', 'cc', an 'bcc' properties with out redemption
addition in this case?
 
D

Dmitry Streblechenko

To, CC, BCC - yes, if you set the corresponding properties to the ";"
separated strings. The recipients will be unresolved however.
From - no, you will need Extended MAPI/CDO 1.21/Redemption to set all the
relevant properties.

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