I have a program that is able to read the emails from my main account, but I need you to read the emails of another mailbox that is not my main mailbox, but one that has privileges, but it is not my main mailbox. So far I have only achieved that, to read the ones in my main mailbox, I have attached the code of the connection and how to access the folder I want to read, to see if you can help me. Thanks!
Log.Message("Intentando conectar con el servidor de Exchange");
ServiceInstance.Credentials = new WebCredentials(User, Password);
ServiceInstance.AutodiscoverUrl(User, RedirectionCallback);
FolderView view = new FolderView(100);
view.PropertySet = new PropertySet(BasePropertySet.IdOnly);
view.PropertySet.Add(FolderSchema.DisplayName);
view.Traversal = FolderTraversal.Deep;
FindFoldersResults re = ServiceInstance.FindFolders(WellKnownFolderName.Root, view);
folder = ServiceInstance.FindFolders(WellKnownFolderName.Root, view).Where(x => x.DisplayName == FolderName).First();