Marc Fisher
Posts: 11
Joined: 2005-05-21
|
Hi
I can sucessfully trap a sendmail event but how do I send using a specific account?
For example, based on the content in the mail, I want force Outlook to send using one of the user account profiles set up. (Like clicking on the accounts button in a new message window)
I figured it would be a function of the 'MailItem' interface, but I just can't seem to find it. :)
Thanks in advance
Marc
(Delphi6 plus registered Adx VCL lib, OL2000 model) |
|
Dmitry Kostochko
Add-in Express team
Posts: 2880
Joined: 2004-04-05
|
Hi Marc,
Unfortunately the Outlook Object Model doesn't contain any properties/methods to access e-mail accounts. But:
- you can find an account list in the windows registry
- a specific account can be set only via Extended MAPI or probably CDO
|
|
Marc Fisher
Posts: 11
Joined: 2005-05-21
|
Mmm. Thats a real show-stopper for my app! :)
"- a specific account can be set only via Extended MAPI"
I know it is not strictly an Add-In-Express issue but can you guide me in the right direction as to how I might do this from the 'onsend' event.
If I can achieve this, my only hurdle would only be to put something in in the users outbox to indicate a send had been made.
You help appreciated
Marc
|
|
Dmitry Kostochko
Add-in Express team
Posts: 2880
Joined: 2004-04-05
|
Hi Marc,
I know it is not strictly an Add-In-Express issue but can you guide me in the right direction as to how I might do this from the 'onsend' event.
Ok, let's try. The Outlook's _MailItem interface has the MAPIObject property (IDispatch). This is the Extended MAPI IMessage interface. Then you will need such methods as GetProps, SetProps, SaveChanges, etc.
|
|