Back to product page

StateChange Event


Fires when wodSmtp's state changes.

Syntax

  • Basic
object.StateChange (ByVal OldState)
The StateChange(object,OldState) syntax has these parts:
objectAn expression evaluating to an object of type wodSmtp
OldStateA SmtpStates enumeration. Represents previous state.

Remarks

StateChange event is fired when wodSmtp changes its state, from Disconnected to Connecting, then to LogonInProgress etc.

To get current state you can use State property.

To get text description of the state, you can use StateText property. For list of all possible states, click here.

Platforms

Windows