MailItem in a Shared folder

  • Thread starter Thread starter Bingo
  • Start date Start date
B

Bingo

The following code is to create an Outlook object for an
email in another person's shared folder.

Set oMapiMailItem = oNsp.GetItemFromID(sMailID, sStoreID)

The object is created successfully since all the
properties are correct. But all the following code
failed.

Set oMapiMailItemNew = oMaipMailItem.Forward
Set oMapiMailItemNew = oMaipMailItem.ReplyAll

And the following together also failed although Copy
method has not problem.
Set oMapiMailItemNew = oMaipMailItem.Copy
oMapiMailItemNew.Save

Why does this happen? Also if this was working, after
the "cloned" mail item is sent out, a copy is saved in my
Send box or another person's? Thanks.
 
Additional Info: both Display and Copy are working on
the MailItem. The MailItem is created using a custom
form. When displaying, all the custom fields are
displayed correctly. Thanks.
 
More info:

The custom form was published by another user to the
organizational folder. The Forward, ReplyAll and Reply
method work fine on emails using the default message form
in this person's Inbox. But they all fail on emails
using the custom form.

Found this on MSDN
http://support.microsoft.com/kb/249965

but the testing PC has already applied Office SR-1.
 
Back
Top