Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
As I am using Windows Application to Read the Mails from Exchange Server

When i open the Mail from my Application I need to update the Mail Status As mark as read In My Mail Account


How can I do this
any one pls Help me.....
Posted
Updated 19-Feb-15 2:29am
v3
Comments
Kuthuparakkal 19-Feb-15 12:57pm    
What are you using ? ExchangeWebAPI or what ?
hebsiboy 19-Feb-15 23:43pm    
yes I am using ExchangeWebAPI
Kuthuparakkal 19-Feb-15 23:53pm    
I have posted an answer, please check

1 solution

Here you go.

C#
mail.IsRead=true;
mail.Update(ConflictResolutionMode.AutoResolve);


Ref: https://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.emailmessage.isread(v=exchg.80).aspx[^]

More Detail Info : Programming with Exchange Server 2007 (EWS) - Part 3[^]
 
Share this answer
 
v2
Comments
hebsiboy 20-Feb-15 0:09am    
what is (mail) --- which object that
Kuthuparakkal 20-Feb-15 0:12am    
EmailMessage
hebsiboy 20-Feb-15 0:13am    
I am Using below code to find mail Information

Item mail= Item.Bind(_service, new ItemId(MsgID));
mail.IsRead = true;
mail.Update(ConflictResolutionMode.AutoResolve);


but i am not finding any property like
mail.IsRead=true;
Kuthuparakkal 20-Feb-15 0:14am    
PropertySet propSet = new PropertySet(BasePropertySet.IdOnly, ItemSchema.Subject, EmailMessageSchema.IsRead);

EmailMessage mail = EmailMessage.Bind(service, itemId, propSet);
hebsiboy 20-Feb-15 3:50am    
thank bro it is working Fine .................

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