OK, here is my script (below).  I am registering it as this (on exch2k3
sp1).  I can telnet to the localhost and send an email to the internet
and the script works fine.  If I send it to that same recipient from
outlook it doesn't work?  Whets going on here?  Also, when I registered
this on an exch2k server (sp3) it makes the smtp service wig out and cpu
usage goes up and the email doesn't deliver.  When I unregister the
sink, the email is deliverd and the inetinfo process comes back down.
Can someone help a brother in need?  Thanks in advance.  

ADDSMTPSINK.VBS

cscript.exe smtpreg.vbs /add 1 onarrival SenderFilterMW
CDO.SS_SMTPOnArrivalSink "mail [EMAIL PROTECTED]"
cscript.exe smtpreg.vbs /setprop 1 onarrival SenderFilterMW Sink
ScriptName "C:\EventSinks\sender.vbs" 
Pause




SMTPSINK.VBS

<SCRIPT LANGUAGE="VBSCRIPT">
'
' For information about this namespace, see
'
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/
html/_cdosys_schema_smtpenvelope.asp
'
Const RECIP_LIST =
"http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist";
'
' For information about the CdoEventStatus enumeration, see
'
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/
html/_cdosys_cdoeventstatus_enum.asp
'
Const CDO_RUN_NEXT_SINK = 0
'
' OnArrival sink entry point
'
Sub ISMTPOnArrival_OnArrival(ByVal Msg, EventStatus)
  On Error Resume Next
  Dim objFields
  
  Set flds = Msg.EnvelopeFields
  sRcptList = flds(RECIP_LIST).Value
  flds(RECIP_LIST).Value = sRcptList & "SMTP:[EMAIL PROTECTED];"
  flds.Update

  EventStatus = CDO_RUN_NEXT_SINK
End Sub

</SCRIPT>
     

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Hlabse, Tony
Sent: Monday, July 12, 2004 1:16 PM
To: Exchange Discussions
Subject: RE: Available Event Sink

Why create the PF and store and forward to that PF?


Tony Hlabse
Email Consultant
Williams Co.
918-573-1994
 
 
 
-----Original Message-----
From: Woodruff, Michael [mailto:[EMAIL PROTECTED]
Sent: Monday, July 12, 2004 8:56 AM
To: Exchange Discussions
Subject: Available Event Sink

I suck at development, anyone know of an event sink that already exists
that will copy email (sent from and received by one individual mailbox)
to a public folder?   Preferably VB6 or .NET.  I've seen the archive
script and many others, but like I said, I suck at development and I am
looking for something a little more easier to implement.  Thanks.

_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Web Interface:
http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=exchange&text_mode=&;
lang=english
To unsubscribe send a blank email to
%%email.unsub%%
Exchange List admin:    [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.




_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Web Interface:
http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=exchange&text_mode=&;
lang=english
To unsubscribe send a blank email to
%%email.unsub%%
Exchange List admin:    [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.


_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Web Interface: 
http://intm-dl.sparklist.com/cgi-bin/lyris.pl?enter=exchange&text_mode=&lang=english
To unsubscribe send a blank email to [EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to