Custom Form Preview Issue

B

Bingo

I'm using a custom form with several hidden fields as
well as VBScript code in Item_Send event.

At the end of Item_Send event, I reset the MessageClass
to IPM.Note. On the recipients' side, they cannot
preview the emails in the preview pane. "This item
contains active content that cannot be displayed in the
preview pane. open the item to read its contents." I
understand all the hidden fields are still left with the
emails even the MessageClass is not IPM.Note.

My question is if it's possible to programmatically
delete all the hidden fields and the VBScript code in
Item_Send event to really reset the email back to the
defaul IPM.Note so the users can preview them in their
preview pane. Thanks.
 
S

Sue Mosher [MVP-Outlook]

Resetting the message class on send generally isn't sufficient to get rid of
the form information. What I've usually done is created an entirely new
message using IPM.Note.
 
B

Bingo

Sue,

In that case, how do you copy everything from the
original email to this entirely new one, including the
attachments if there are any? I guess this is back to
one early question I had. Thanks.
 
S

Sue Mosher [MVP-Outlook]

You copy data field by field. For attachments, you save them first. See
http://www.outlookcode.com/d/code/copyatts.htm

It is probably possible to use CDO 1.21 to strip out fields that control the
behavior. Dmitry might know the MAPI property tags off the top of his head,
but I don't. Using Outlook Spy should be of great assistance if you want to
research this.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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