Good evening,
i am reading a few unread emails from the outlook and marking them as read and using those mailmessage properties in the code. sometimes after reading the emails, bot stops. but when I close the outlook and open outlook again and make those mail unread and run the bot again it is working fine.
i have kept the getoutlook in try catch and in catch i am closing the outlook and opening outlook again. now the problem I am facing is " How to make those already read emails unread".
can anyone give an idea to face this issue.