Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- wodSmtp
- Methods
- Properties
- Authentication
- Blocking
- Certificate
- CharSet
- DNSHostname
- Hostname
- LastError
- LastErrorText
- Login
- MailFrom
- MailTo
- Message
- MyHostname
- MyIP
- Notification
- Password
- Port
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RequestReceipt
- RetryCount
- RetryWait
- Security
- State
- StateText
- Tag
- Timeout
- Transcript
- UseIPv6
- Version
- Events
- IwodSmtpClientNotify
- SmtpEncoder
- SmtpHdr
- SmtpHdrs
- SmtpMsg
- SmtpMsgs
- wodSmtp
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Disconnected Method
Called when wodSmtp disconnects from the server.
Syntax
- Basic
object.Disconnected (Owner, ErrorCode, ErrorText)
The Disconnected(object,Owner,ErrorCode,ErrorText) syntax has these parts:
The Disconnected(object,Owner,ErrorCode,ErrorText) syntax has these parts:
object | An expression evaluating to an object of type IwodSmtpClientNotify |
Owner | wodSmtp object. Reference to wodSmtpCom instance that called this callback method. |
ErrorCode | A Long value. Holds error number, if any. |
ErrorText | A 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.Disconnected notification method is called when wodSmtp disconnects from the server, either due to using Disconnect method, or because server closed the connection. If error occurred, ErrorCode and ErrorText arguments will provide information about the error.
Disconnected method can be called also as a result of calling Connect and SendMessage methods - if disconnection occurred because server was unavailable, authentication failed etc...