c# - Accessing a Mailbox Within An Outlook Account -


i writing application automate sending of e-mails specific mailbox within account available on outlook. able accounts available doing:

outlook.application application = new outlook.application(); outlook.accounts accounts = application.session.accounts; 

i can iterate through available accounts doing:

foreach (outlook.account account in accounts) {     console.writeline(account.displayname); } 

my question is: how access mailboxes within exchange account in list. lets first element in accounts list.

i have read few other questions on accessing inbox folder contents of mailbox, looking send email item later create using chosen mailbox in "from" field.

thanks help.


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -