How can make a fuction(Request a read receipt for this message)? RRS feed

  • Question

  • Hi there.

    As you know there is message option(Request a read receipt for this message) in OWA when you are make a new message.

    I want to make this fuction via EWS or EWS Managed API or Webdav.

    If know something about it plz help me.


    Wednesday, August 24, 2011 2:16 AM

All replies

  • If you use the Managed API just set the property IsReadReceiptRequested  eg

          EmailMessage email = new EmailMessage(service);
          email.Subject = "xad";
          email.IsReadReceiptRequested = true;
          email.IsDeliveryReceiptRequested = true;


    Wednesday, August 24, 2011 3:34 AM
  • Thanks your apply ;-)

    However, I do not complet.

    This is my cord and it is written by EWS.

    ********************* STRAT ***********************************

                    CreateItemType request = new CreateItemType();
                    MessageType message = new MessageType();
                    message.Subject = "<label for="chkRdRcp">Request a read receipt for this message</label> Test";
                    message.Body = new BodyType();
                    message.Body.BodyType1 = BodyTypeType.Text;
                    message.Body.Value = "<label for="chkRdRcp">Request a read receipt for this message</label>.";
                    message.ToRecipients = new EmailAddressType[1];
                    message.ToRecipients[0] = new EmailAddressType();
                    message.ToRecipients[0].EmailAddress = "user1@abcdef.com";
                    message.IsReadReceiptRequested = true;  // I did...

                    request.Items = new NonEmptyArrayOfAllItemsType();
                    request.Items.Items = new ItemType[1];
                    request.Items.Items[0] = message;

                    request.MessageDisposition = MessageDispositionType.SendAndSaveCopy;
                    request.MessageDispositionSpecified = true;
                    request.SavedItemFolderId = new TargetFolderIdType();
                    sfSenditems = new DistinguishedFolderIdType();
                    sfSenditems.Id = DistinguishedFolderIdNameType.sentitems;
                    request.SavedItemFolderId.Item = sfSenditems;

                    // Call the CreateItem EWS method.
                    CreateItemResponseType response = esb.CreateItem(request);

    ********************* END***********************************

    After send an e-mail and i have checked this message via OWA.

    But i can not see this.....

    How can i see this message...????


    Wednesday, August 24, 2011 5:15 AM
  • I would suggest you download and use the EWS Managed API http://www.microsoft.com/download/en/details.aspx?id=13480 instead of using proxy code it will save you a lot of time and effort in the long run.

    Why your proxy code isn't working is because you haven't set

    message.IsDeliveryReceiptRequestedSpecified = true;



    Wednesday, August 24, 2011 5:29 AM
  • Thanks alot and i will try to use EWS Managed API.

    Have a nice day.

    Wednesday, August 24, 2011 5:34 AM