wodPop3Server ActiveX Control - Connecting Event
    
 

Description

Fires when new user is connecting to server.


Syntax

Private Sub object_Connecting(User, Action)



The Connecting Event syntax has these parts:

Part Description
object A wodPop3Server object.
User A Pop3User object. Reference to user who wants to connect to wodPop3Server.
Action A Pop3Actions enumeration, as described in settings. Return value you should set to either Allow or Deny to determine if user is allowed to attempt to login.

Settings

The settings for Action are:

Constant Value Description
 Deny 0 Deny execution of the action.
 Allow 1 Allow to execute action.

Remarks

At the time this event is fired, no commands are entered by user. Only his Hostname and TimeConnected properties are known to wodPop3Server. Server will fire this event so you can decide if you will let user access your server at all.

This is very handy if you want to perform IP filter checking on your server, thus allowing only specific range of IP addresses to access server. After you check user's Hostname property, set Action = Allow to let him continue using the server, or Action = Deny to close connection without any response made by your server. You can prevent potential hackers or attackers this way.