Trigger example: Hello World


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.


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

Search documentation