 |
Description:
If everyone in your office is using Exchange Instant messaging you may want to provide a method to allow some users to send a quick announcement to all online users. One solution for this is to setup a mailbox that your users can send an email to with their announcement as the subject. This email will then trigger the On_Arrival SMTP event sink on the Instant Messaging Server which will spawn a script that queries Active directory for all IM users and then establishes a session with each user and sends them a message based on the subject line of the initiating email.
Installation:
To install and use an SMTP event sink you will first require the SMTPREG.vbs script that is included in the Exchange SDK. Create a directory on your servers c: drive called c:\smtpevt and copy the smtpreg.vbs ,smtpevt.vbs and sndmsg.vbs scripts into this directory. To create an event sink for the smtpevt.vbs script that will fire when mail is received addressed to IMannouce. From a command line in the c:\smtpevt directory type:
cscript smtpreg.vbs /add 1 onarrival IMannouce CDO.SS_SMTPOnArrivalSink "mail to=imannouce@yourdomain.com"
You then need to associate the smtpevt.vbs script to this event sink you have created using:
cscript smtpreg.vbs /setprop 1 onarrival IMannouce Sink ScriptName c:\smtpevt\smtpevt.vbs
Once this has been done you need to stop and start the SMTP service and your event sink will now be active.
If you wish to delete this event sink latter type:
cscript smtpreg.vbs /remove 1 onarrival IMannouce
Code description:
Detailed code description is available on script homepage. Written on VBScript.
|
 |

|