Back to product page

SmtpStates Enumeration


This is the list of states that can occur in wodSmtp.

Remarks

When state changes, StateChange event is fired. You can get current state with State property.

Possible values for SmtpStates:

Constant Value Description
Disconnected 0 Not connected.
RelayResolvingMX 1 Trying to obtain Mail Exchanger address.
RelayResolvingA 2 Trying to obtain IP address of the server.
Connecting 3 Connecting to the server.
SendingGreeting 4 Sending greeting to the server.
LogonInProgress 5 Sending authentication information.
Connected 6 Connected to the server.
SendingMailFrom 7 Sending MAIL FROM command.
SendingRcptTo 8 Sending RCPT TO command.
SendingData 9 Sending DATA command.
SendingHeaders 10 Sending message headers.
SendingBody 11 Sending message body
Resetting 12 Sending greeting to the server.
Completed 13 Completed sending message.
Retrying 14 Disconnected, will retry again.
NegotiatingSSL 15 Negotiating SSL encryption.
EstablishedSSL 16 Established SSL encryption.

Platforms

Windows