Scripts used with the Microsoft Exchange Event Service primarily use CDO, although they exhibit some differences from pure CDO scripts. For example, the following points are good to remember:
You do not need to write code to log on to a CDO session, because you will be passed the named value EventDetails.Session as an intrinsic object.
You can write "asserts" or other debugging strings to the Agent's execution log by assigning the string as value to the intrinsic object Script.Response.