how to read sender/receiver pop3 email addresses from outlook by using outlook object model

Unanswered how to read sender/receiver pop3 email addresses from outlook by using outlook object model

  • Monday, September 17, 2012 7:50 PM
     
     

    I have configured my outlook with pop3 account. And i would like to read From,To email addresses using C# (probably outlook object model). Appreciated any pointers on this?

    Do we have any msdn material to learn outlook object model for non-exchange account i.e pop3 or IMAPI4?

    Thanks a lot for your help in advance.


    http://www.selvaonline.com - Live a Happy & Balanced Life

All Replies

  • Monday, September 17, 2012 10:15 PM
     
     

    Use the Application.Session.Accounts collection.

    In your particular case, yo uwill probably need Account.CurrentUser property: http://msdn.microsoft.com/en-us/library/office/ff869974.aspx


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

  • Tuesday, September 18, 2012 2:30 AM
     
     

    Thanks for your reply. That helps.

    What about folders,entry id, global appointment id for pop3 account? can we use the same outlook objects which we used for exchange server account?


    http://www.selvaonline.com - Live a Happy & Balanced Life

  • Tuesday, September 18, 2012 4:28 AM
     
     
    I am not sure I understand the question - do you mean you need to access a particular store/folder/message? Or are you trying to link a POP3 account with a set of messages?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!


  • Tuesday, September 18, 2012 2:28 PM
     
     
    My question is how to access particular store/folder/message with pop3 account? It is same as exchange account? or we need to use some different object to access these folder/store/messages?

    http://www.selvaonline.com - Live a Happy & Balanced Life

  • Tuesday, September 18, 2012 4:14 PM
     
     

    POP3 (unlike IMAP4) is a message retrieval protocol, there are no folders.

    Once a message is retrieved, it will reside in a local store, where it is pretty much (to an end user) indistinguishable from other messages.

    Are you attempting to access messages currently located on a POP3 server? Or already downloaded locally?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!


  • Tuesday, September 18, 2012 9:45 PM
     
     

    If i am configuring my gmail account in outlook client and schedule some meeting using outlook functionality. How can i search for a global appointment id using OOO. 

    P.S : Incoming Mail Server :IMAP.gmail.com

    Outgoing Mail Server (SMTP) :POP3.gmail.com


    http://www.selvaonline.com - Live a Happy & Balanced Life

  • Wednesday, September 19, 2012 3:22 PM
     
     
    Search in the local Calendar folder? Is the appointment present locally?

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!

  • Wednesday, September 19, 2012 4:31 PM
     
     
    Is there any chance exchange server related to Calendar folder functionality? or calendar folder functionality driven by outlook client?

    http://www.selvaonline.com - Live a Happy & Balanced Life

  • Wednesday, September 19, 2012 4:35 PM
     
     

    I am not sure I understand the question.

    Do you mean where the appointments are actually stored?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.4 is now available!