identiying SMTP-account for outgoing email ???

  • Thread starter Thread starter Jannick Asmus
  • Start date Start date
J

Jannick Asmus

Hi NG,

how can I identify that an email to be sent goes out via a particular
(SMTP) account? Any property of MailItem?

This is needed to attach a disclaimer file when I am sending out emails
through my professional account from my private PC.

Thanks for any hints,
J.
 
Not using the Outlook Object Model. On the Extended MAPI level, there are a
couple named properties set if a non-default account is used. One of this
props holds teh account id which can be used to looks up the account
properties using thee recently documented IOlkAccountManager interface.

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