Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Fri, 9 Mar 2007 16:01:17 +0100,    group: microsoft.public.exchange2000.development        back       


script for adding new recipient to BCC list via Event Sink   
Hi,

I am looking for a way to add a new recipient to the BCC list in order to 
send  a copy to a Sharepoint mail account:

This is the empty body of how to implement a standard application, but what 
do I need to do to add new recipient to the BCC list?

The MSDN doesnt give me any clue on this and the references are not well 
documented with examples.

What is the best way to program event sinks anyway as there is no 
IntelliSense support?

' Reference to ADO 2.5 and CDO for Microsoft Exchange
Implements CDO.ISMTPOnArrival

Private Sub ISMTPOnArrival_OnArrival( ByVal Msg As IMessage, pEventStatus as 
CdoEventStatus )
  Msg.TextBody = Msg.TextBody & vbCrLf & "Text added by the sink."
  ' Commit the changes into the transport Stream
  Msg.DataSource.Save
End Sub


Thank you!
Andreas Cieslik
date: Fri, 9 Mar 2007 16:01:17 +0100   author:   Andreas Cieslik

Re: script for adding new recipient to BCC list via Event Sink   
The BCC field of a message is a envelope field or P1 message header you can 
modify the envelope message headers via the envelope fields see 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/88a535b0-7e41-4756-b04a-1699f0f14ea0.asp. 
One example of this is the catchall event sink 
http://support.microsoft.com/kb/324021. A word of warning tread carefully 
you can very easily create a message loop using poor code and logic if you 
modify the recipient list (my preferred method is to copy the message 
itself). If you want to write sinks in C# have a look at 
http://support.microsoft.com/kb/894286

Cheers
Glen

"Andreas Cieslik"  wrote in message 
news:%239s7MvlYHHA.5044@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> I am looking for a way to add a new recipient to the BCC list in order to 
> send  a copy to a Sharepoint mail account:
>
> This is the empty body of how to implement a standard application, but 
> what do I need to do to add new recipient to the BCC list?
>
> The MSDN doesnt give me any clue on this and the references are not well 
> documented with examples.
>
> What is the best way to program event sinks anyway as there is no 
> IntelliSense support?
>
> ' Reference to ADO 2.5 and CDO for Microsoft Exchange
> Implements CDO.ISMTPOnArrival
>
> Private Sub ISMTPOnArrival_OnArrival( ByVal Msg As IMessage, pEventStatus 
> as CdoEventStatus )
>  Msg.TextBody = Msg.TextBody & vbCrLf & "Text added by the sink."
>  ' Commit the changes into the transport Stream
>  Msg.DataSource.Save
> End Sub
>
>
> Thank you!
> Andreas Cieslik
>
date: Tue, 13 Mar 2007 09:30:38 +1100   author:   Glen Scales [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us