wodSmtpServer ActiveX Control - HeloReceived Event
    
 

Description

Fires when user sends HELO/EHLO command.


Syntax

Private Sub object_HeloReceived(User, HELOdomain, Action)



The HeloReceived Event syntax has these parts:

Part Description
object A wodSmtpServer object.
User A SmtpUser object. Reference to user who sent the command.
HELOdomain A String value. Holds domain entered by the user.
Action A SmtpActions enumeration, as described in settings. You should set it to Allow or Deny, depending if you accept HELO/EHLO argument or not.

Settings

The settings for Action are:

Constant Value Description
 Deny 0 Deny execution of the action.
 Allow 1 Allow to execute action.
 SilentDeny 2 Silently deny execution of the action.
 SilentAllow 3 Silently allow to execute action.

Remarks

HeloReceived event is fired when user issues HELO or EHLO commands, supplying his hostname. At this point you can check if this entry is valid, and decide if you will allow user to proceed (by setting Action to Allow), or deny further commands (by setting Action to Deny).