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

Do not reset the default account, simply set the appropriate named
properties on the message to tell Outlook which account it should use for
sending.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:8feb53939ec5d@uwe...
Thank you Dmitry, the IOlkAccountManager can Set the default account, but
i
still have question here.
Say A is the default account, B is another, and C send a message to B. B
should auto reply a message to C.
This is my code flow for repy message to C:
1. Set specified account(B) as default.(SetOrder)
2. Create the message and send it.
3. Restore the original account(A).(SetOrder again)
well, the problem is that How could i known when the message is already
sent.
The result of my code is alway send by A. If i mark the 3. It can
work(send
by B). But it is bad for that change the default account and user may
don't
know that, right?
In one word, when should i do the action 3?
Thanks in advance.

Dmitry Streblechenko wrote:
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.


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



Ads