How to programmatically display a new mail item into a “sent†form

P

Pavel Rosoi

I need to programmatically display a mail item into a form similar to “sentâ€
item form (with Reply, ReplyAll and Forward buttons).
My approach is:
-cancel the Item_Open event,
-create a new mail item using a published custom form which is based on a
sent item.
-display the new mail item.
The problem is that my new item is displayed into a standard new mail form
and I don’t know how to display this new item into a “sent†form. I have to
use only Outlook 2003 and VBScript.
Thank you in advance.
 
P

Pavel Rosoi

Thank you. I have to have Redemption installed on all computers which run
Outlook forms with this code-behind?
 
D

Dmitry Streblechenko

Yes.
You can use OOM alone to create a post item and then change its message
class back to IPM.Note, but the icon won't be right.
You can set PR_ICON_INDEX without Redemption using MailItem.PropertyAccessor
in Outlook 2007.

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

Pavel Rosoi

Thank you for answer. There is no way to do that without the deploying of
another library?
 

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