Trigger example: Hello World

Overview

It's possible to implement custom scripts in hMailServer which are executed when certain actions occrur. This example shows you how to write the text Hello World to the Event log whenever a message is accepted for delivery by hMailServer.

Script

Sub OnAcceptMessage(oClient, oMessage)
   EventLog.Write("Hello World")
End Sub

Search documentation