Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. EWS Managed API : "The SMTP address has no mailbox associated with it."

EWS Managed API : "The SMTP address has no mailbox associated with it."

Scheduled Pinned Locked Moved C#
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kuthuparakkal
    wrote on last edited by
    #1

    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...

    OriginalGriffO 1 Reply Last reply
    0
    • K Kuthuparakkal

      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...

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      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...

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups