Eric Legault [MVP - Outlook] ha scritto:
Yes, this can be done. I assume the sending account and the relationship to
the Contact item is based on the recipient's e-mail address in the To: line?
You'd need to use that address to use the Items.Restrict method or
AdvancedSearch object against the items in the Contacts folder. Assuming you
only get one ContactItem in the query results, you can then read the
ContactItem.Categories property to parse the list of applied Categories.
Then use that value to map to the name of the e-mail account, and use a
CommandBarButton.Execute object/method to programmatically click the account
in the Accounts drop-down menu (the sending account can't be set using the
Outlook Object Model, hence the trick of clicking the button).
Hope this gets you started...
Hi, i have the same problem, i try to find the Accounts drop-down menu
and programmatically click the rigth account but i don't find the menu.
You can show me the rigth way?
With other button and /or command menu i be succesfull, but not with
ccounts drop-down menu.
Tanks.
Bye, sorry for my english