assigning accoutn name to a variable

G

graatje

Is there a possibility to assign the account name to a variable? I want to
check with which account the mail is sent, and depending on that account to
copy the sent mail.
 
D

Dmitry Streblechenko

Accounts are not exposed through the Outlook Object Model. If an account
other than the default one is being used, you can check a couple of named
properties using Extended MAPI/CDO 1.21/Redemption; Outlook stores account
name and id in these propertires - look at a message with MdbView/OutlookSpy
to see them.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Top