No sender related propeties are set when the ItemSend event fires.
These properties are set by the transport provider after it asynchronously
sends the message.
Items.ItemAdd event on the Sent Items folder (fired after the message is
sent and moved to the Sent Items folder) is the earliest you can access any
sender related properties.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
wrote in message
ups.com...
Hi
I am developing a plugin using C#, VSTO 2005 and Outlook 2003.
I am trying to get the sender name (or email address) from myItem
object but apparently the value is always null for this. Is this a
known bug or am I doing something wrong in this.
myItem.SenderName or also myItem.SenderAddress
How do i get this?
I really didnt want to go this route - but also tried getting it from
MAPI property - PR_CREATOR_NAME - but that value is also null.
FYI - I am trying to capture this value during the MailItem_ItemSend
event.
Can anybody please give me some pointers as to why this is not
working.
Thanks