I'm trying to get the sender email address from email that is send using another email address.
The sender as shows in outlook is ditribution-lists@domain.com on behalf of User Name [user.name@domain.com].
The MAPI
object has a method SentOnBehalfOfName
that returns "User Name" but not the email address.
Does anyone know how to receive user.name@domain.com field?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Do you have http://www.dimastr.com/outspy/ ? It is a useful tool for drilling down into MAPI objects in outlook.
Also, if you use http://www.dimastr.com/redemption/ you can get at a SentOnBehalfOfEmailAddress property on the IRDOMail object.
If you are using outlook 2007 you have the MailItem.PropertyAccessor and you can get the PR_SENDER_EMAIL_ADDRESS mapi property.
Marcus