View Single Post
  #8  
Old January 9th 09, 12:12 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default The sender problems, help me pls?

The first account in the list returned by IOlkAccountManager::GetOrder
method is teh default one.
You can play with IOlkAccountManager in OutlookSpy - click Misc |
IOlkAccountManager.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:8fdf87823e701@uwe...
That's great, i will try it tommorrow. How can i use this interface to set
the account to send email? I find a sample on codeproject.com. It can
retrieve all accounts, but how to set the default account, the SetOrder()
function? But how could i know which one is the current default account?
Thanks very much.

Dmitry Streblechenko wrote:
You can set these properties using Extended MAPI (shouldn't be a problem
if
you are using C++) - IMessage interface can be obtained through the
MailItem.MAPIOBJECT property. To retrieve the accoutn naame and id, use
the
IOlkAccountManager interface.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200901/1



Ads