Description
-
Called when user sends HELO/EHLO command.
Return Type
-
None
Syntax
-
object.HeloReceived Owner,
User, HELOdomain, Action
The HeloReceived Method syntax has these parts:
object |
An expression
evaluating to an object of type Notifications. |
Owner |
Required. A wodSmtpServer
object. Reference to wodSmtpServerCom instance that
called this callback method. |
User |
Required. A SmtpUser object.
Reference to user who sent the command. |
HELOdomain |
Required. A String
value. Holds domain entered by the user. |
Action |
Required. 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:
|
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
-
NOTE: This method is called only if you
implemented INotifications
interface in your application, and
wodSmtpServer1.Notification
property has received reference to
instance of your implementation.
HeloReceived notification method is called 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).
|