wodSmtpServer ActiveX Control - State Property
      
 

Description

Holds user's state.


Property type

A SmtpUserStates enumeration.  


Syntax

object.State



The State Property syntax has these parts:

Part Description
object An expression evaluating to an object of type SmtpUser.

Remarks

This is readonly property that holds current user's state. User's state will change during connection lifetime, from StateConnecting to StateSendingMessage, depending on user's actions. On each change of user's state, StateChange will fire so you can inspect this change.

Most of the time value of this property will be StateLoggedIn. In this state user will send commands to describe new message, and then it will post new message. If you want to extend wodSmtpServer with your commands, you should check that value of State property is StateLoggedIn (most of the time).