OnClientConnect

Signature

OnClientConnect(oClient as hMailServer.Client)

Description

This event is fired directly after a TCP/IP connection has been opened towards hMailServer. The event is fired before the user has logged on, which means that the oClient.Username property will return an empty string.

Result values

  • 0 - hMailServer accepts the connection
  • 1 - hMailServer rejects the connection

Examples

VB-script: