|I get an error when trying to access a non-user mailbox (Process MailBox): "The SMTP address has no mailbox associated with it."
This is the code I use. This has been working since 2010; but stopped working last week.
static void Test()
string MailBoxAdd = "email@example.com";
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
service.UseDefaultCredentials = true;
ItemView view = new ItemView(10);
view.PropertySet = new PropertySet(BasePropertySet.IdOnly, ItemSchema.Subject, ItemSchema.DateTimeReceived, ItemSchema.HasAttachments);
FolderId folder = new FolderId(WellKnownFolderName.Inbox, new Mailbox(MailBoxAdd));
FindItemsResults<Item> findResults = service.FindItems(folder, view);
Appreciate your help...