EWS Managed API : "The SMTP address has no mailbox associated with it."
-
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 = "xxxx.xx@dom.com";
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
service.UseDefaultCredentials = true;
service.AutodiscoverUrl(MailBoxAdd, RedirectionUrlValidationCallback);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...
-
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 = "xxxx.xx@dom.com";
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
service.UseDefaultCredentials = true;
service.AutodiscoverUrl(MailBoxAdd, RedirectionUrlValidationCallback);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...
PLease do not post the same thing in multiple places: it duplicates work and that annoys people. You have this posted in QA, so leave it there.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...