Back to product page

Done Method


Called when message is sent.

Syntax

  • Basic
object.Done (Owner, ErrorCode, ErrorText)
The Done(object,Owner,ErrorCode,ErrorText) syntax has these parts:
objectAn expression evaluating to an object of type IwodSmtpClientNotify
OwnerwodSmtp object. Reference to wodSmtpCom instance that called this callback method.
ErrorCodeA Long value. Holds error number, if any.
ErrorTextA String value. Text description of the error, if any.

Remarks

NOTE: This method is called only if you implemented IwodSmtpClientNotify interface in your application, and wodSmtp1.Notification property has received reference to instance of your implementation.

Done notification method is called as a result of async method you called previously, such as SendMessage. Once this notification method is called, 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