Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,
we are developing synchronise exchange server with activesync in C# that`s working well we can able to retrive inbox mails. Now our client expecting to delete email from exchange server from my website. But i dont have good sample in microsoft site just they give the request and response XML only. we are expecting sample code to delete mail item from exchange server. Below is the request and respose XML sample from microsoft site

XML
<?xml version="1.0" encoding="utf-8"?>
<Sync xmlns="AirSync:">
  <Collections>
    <Collection>
      <SyncKey>1174511196</SyncKey>
      <CollectionId>5</CollectionId>
      <DeletesAsMoves>1</DeletesAsMoves>
      <GetChanges>1</GetChanges>
      <WindowSize>512</WindowSize>
      <Commands>
        <Delete>
          <ServerId>5:10</ServerId>
        </Delete>
      </Commands>
    </Collection>
  </Collections>
</Sync>

Response:

<?xml version="1.0" encoding="utf-8"?>
<Sync xmlns="AirSync:">
  <Collections>
    <Collection>
      <SyncKey>721953595</SyncKey>
      <CollectionId>5</CollectionId>
      <Status>1</Status>
    </Collection>
  </Collections>
</Sync>


please help.
thanks,
Suresh
Posted
Updated 12-Nov-13 23:59pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900