How I can get Sender Email Address from MailItem in Addin

I

Igor Grozman

How Can i Get Sender Email Address from MailItem in Outlook AddIn that writen in C#
I cannot found correct property in MailItem class
 
K

Ken Slovak - [MVP - Outlook]

Outlook only exposes that property directly in Outlook 2003. In earlier
versions you would have to use CDO 1.21 or Extended MAPI code. MAPI can only
be programmed using C++ or Delphi, however, not C#.

There is a COM example of getting the actual sender email address using CDO
1.21 code written in VBA/VB6 at
http://www.slovaktech.com/code_samples.htm#FromAddress, you can try to
translate that into C# code if you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top