Protocol Event Sink Issue Using Manged .NET event sink.

Protocol Event Sink Issue Using Manged .NET event sink.

Post by William Ho » Tue, 09 Nov 2004 11:01:39


Hello,

I am working on an SMTP Protocol Event Sink. I am firing on RCPT TO

I am creating a message object with

Message Msg = new Message(message);

Msg.SenderAddressSMTP is populated with the sender's address. However there
doesn't seem to be any reference to the Recipient. Where can this be
obtained. I thought it would be in Msg.Rfc822ToAddress but this is not
populated.

Is there another object that has this info??

Thanks

Bill
 
 
 

Protocol Event Sink Issue Using Manged .NET event sink.

Post by William Ho » Wed, 10 Nov 2004 03:24:28

According to the documentation Recipients for a message are supposed to be
in a collection that is exposed as a property of the type RecipCollection.
It appears that this collection is also empty.
- Recips
{Microsoft.Exchange.Transport.EventWrappers.Message.RecipCollection}
Microsoft.Exchange.Transport.EventWrappers.Message.RecipCollection
+ System.MarshalByRefObject
{Microsoft.Exchange.Transport.EventWrappers.Message.RecipCollection}
System.MarshalByRefObject
Count 0 uint
Item <cannot view indexed property>
Microsoft.Exchange.Transport.EventWrappers.Recip

Perhaps this collection simply needs to enurmated. Does anyone have a
pointer on this?

Thanks

Bill






there