how to get the sender's email address

Add-in Express™ Support Service
That's what is more important than anything else

how to get the sender's email address
getting sender's email address in outlook 
ahmad zaher




Posts: 37
Joined: 2009-11-03
hi, i need to get the sender's email address for mailitems i tried every way i know but can not get,any one know how?
thank you
Posted 10 Nov, 2009 10:36:44 Top
Eugene Astafiev


Guest


Hi Ahmad,

1. Please have a look at the SenderEmailAddress property of the MailItem class. In that case you need to use version specific PIAs. If you don't want to support Outlook 2000 you can use the late binding technology. See the System.Type.InvokeMember method.
2. You can use the http://www.add-in-express.com/products/mapi-store-events.php. This property corresponds to the MAPI property PR_SENDER_EMAIL_ADDRESS.
Posted 10 Nov, 2009 10:50:41 Top