Place OL mailitem in Sent Items Folder

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Thanks for the ans..
Can i set 'from','to', 'cc', an 'bcc' properties with out redemption
addition in this case?
 
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
 
Back
Top