Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VSTO - Determine the received emailaddress from an Mailitem

21 views
Skip to first unread message

Alex

unread,
Apr 7, 2010, 7:43:54 AM4/7/10
to

Hello!

I have the problem, that I cant find (google, bing) the correct property to
get the E-Mail Address that received the Mailitem. If I get a Mail with
sa...@company.com and sup...@company.com (the sender sent the mail to both
addresses) I want to know which Item comes from Sales and which from
Support.

Thanks for Help

Alex

Ken Slovak - [MVP - Outlook]

unread,
Apr 7, 2010, 9:16:08 AM4/7/10
to
There is a ReceivedByName property for a mail item that you can use. If
that's not what you want and you want an email address you need to use
either the Outlook 2007 PropertyAccessor or a different API such as
Redemption (www.dimastr.com/redemption).

In Outlook 2007 once you get a PropertyAccessor object on a MailItem you can
use the following DASL property tag with the PropertyAccessor.GetProperty()
method to retrieve the receiving email address:
"http://schemas.microsoft.com/mapi/proptag/0x0076001E". This is a string
DASL property tag, not a Web URL, that represents the MAPI
PR_RECEIVED_BY_EMAIL_ADDRESS property.

That property will be in the form of an Exchange DN if the receiving address
represents a member of an Exchange GAL.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Alex" <pbnew...@hyperbird.de> wrote in message
news:e5dXdek1...@TK2MSFTNGP02.phx.gbl...

0 new messages