how to update IsRead
property of an EmailMessage
using EWS or other method?
Just setting mail.IsRead=true
does not seem to persist.
OK,no one answer my question after I post it for nearly 1 hour which is quite unusual, but I just found a solution. Hope this will help others who get confused on this issue.
mail.IsRead=true;
mail.Update(ConflictResolutionMode.AutoResolve);
That's it. The key is you have to update the item or EmailMessage after setting IsRead property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With