0

In managed Exchange Web Services there is a class PostItem, which can be instantiate with ExchangeService object.

But after assigning all properties including with InReplyId and From, and calling Save(folderId) method:

        PostItem newPost = new PostItem(mService);
        newPost.InReplyTo = originalPost.Id.UniqueId;
        newPost.From = new EmailAddress( "Max Gontar", "mgontar@server.com" );
        newPost.Subject = msg.Subj;
        newPost.Body = msg.TextBody;
        newPost.Save(mCurrentFolderId);

It still creates a separate Post, not a Reply Post:

Other way I have tried:

        PostReply reply = originalPost.CreatePostReply();
        reply.Subject = msg.Subj;
        reply.Body = msg.TextBody;
        reply.Save( currentFolder.Id )

There is no way to set From property, so it should create Post Reply with current credentials Contact email address. But it gives null there!

alt text

Can you help me?

Thank you!

Alfred Myers
  • 6,384
  • 1
  • 40
  • 68
Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114

1 Answers1

0

Im just learning about this api but this code may work:

 newpost.Update(ConflictResolutionMode.AutoResolve)
Joe Riggs
  • 1,312
  • 4
  • 23
  • 48