Back to product page

Done Event


Fires when message is sent.

Syntax

  • Basic
object.Done (ByVal ErrorCode, ByVal ErrorText)
The Done(object,ErrorCode,ErrorText) syntax has these parts:
objectAn expression evaluating to an object of type wodSmtp
ErrorCodeA Long value. Holds error number, if any.
ErrorTextA String value. Text description of the error, if any.

Remarks

Done event is fired as a result of async method you called previously, such as SendMessage. Once this event is fired, you're free to execute next method, or close the connection. It means that message is delivered to the server.

If error occurred during delivery process, ErrorCode and ErrorText arguments will contains description of the error.

Platforms

Windows