Creating Exchange Server Event Sinks with Exchange SDK

Posted on 2006-05-29
Last Modified: 2012-05-05
This link describes how to add a disclaimer to outgoing SMTP messages in Visual Basic script.

I've tried a few other ways (including GFI Mail Essentials) but none work so well.

My issue is this.
In the above article it makes reference to "Smtpreg.vbs file, which is installed with the Exchange SDK"
It tells you that the VBS should be located in "...\Exchange SDK\SDK\Support\CDO\Scripts" folder

I've installed the SDK tools but they dont give you the directories listed.

Any help ?
Question by:Conchial
    LVL 4

    Accepted Solution

    Download the file from the link:
    Extract and install, the smtpreg.vbs script is located in the folder (if you don't change the defaults) C:\Program Files\Exchange SDK\SDK\Support\CDO\Scripts

    Copy the EventSinkScript.vbs that you created using the support article to a directory on your server (e.g. c:\scripts) and browse to the folder (C:\Program Files\Exchange SDK\SDK\Support\CDO\Scripts) where the smtpreg.vbs script is located (using the command prompt).
    Then type:

    cscript smtpreg.vbs /add 1 onarrival SMTPScriptingHost CDO.SS_SMTPOnArrivalSink "mail from=*"
    cscript smtpreg.vbs /setprop 1 onarrival SMTPScriptingHost Sink ScriptName "C:\scripts\EventSinkScript.vbs"
     If the command succeeds, you receive a success message generated by the script.

    That should do the trick...

    Author Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
    Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
    The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now