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

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -