locked
Outlook Integration RRS feed

  • Question

  • Hi
    My code::

    Application oOutlook;
    NameSpace oNs;
    MAPIFolder oFldr;

    oOutlook = new Application();
    oNs = oOutlook.GetNamespace("MAPI");
    oFldr = oNs.GetDefaultFolder(OlDefaultFolders.olFolderInbox);
    foreach (MailItem oMessage in oFldr.Items)
    {
               Response.Write(oMessage.To);
               Response.Write(oMessage.Body);
               Response.Write(oMessage.SenderName);
               Response.Write(oMessage.Subject);
    }

    My code is like this:But i am not getting my Outlook folders.This code will returns the blank folders as the inbox folder is not blank..My outlook is integrated with my corporate id.And my outlook history is maintained on the different location.So what is the problem in this code?Can anybpdy help me?
    Please mail me on bansari.vashi@spheredge.com if you found any solution.

    Thank you.
    • Moved by Shrikant Maske Friday, June 5, 2009 8:55 AM Off- topic post (From:Social Bookmarks Discussion Forum)
    Friday, June 5, 2009 5:20 AM

All replies

  • Hello Vashi,

     

    Thank you for your post!  Unfortunately I am not able to determine which forum or newsgroup is best suited for your question at hand.  Can you provide me a little more detail in regards to the product or technology you are inquiring about?

    Thanks!


    Shrikant Maske Tier 2 Application Support Server and Tools Online Engineering Live Services Team
    Friday, June 5, 2009 8:57 AM