Returns completion status of the last operation.
This is an extended version of the IsError property. To get string version,
use ErrDesc property.
The list of possible values is as follows (codes 0 - 14 are common
for POP3, SMTP and IMAP4 objects, codes 2xx are specific
to POP3 object):
- 0 - No Error
- 1 - Not connected
- 2 - Already connected
- 3 - Remote host not resolved
- 4 - Connection failed (server not found)
- 5 - Timeout occurred (No response from the server during the interval
specified by Timeout property value)
- 6 - Connection suddenly closed by the server (many servers close
connection if the client has no activity for a while. Periodically calling
Ping method, the developer can avoid this)
- 7 - Connection aborted by client side (due to call of POP3.Abort
method)
- 8 - Other connection-related errors
- 11 - SSL STARTTLS not supported. SSL connection over regular port
is not supported by the server
- 12 - SSL Init failed. See SSLError
property of SSL object for details
- 13 - SSL Encrypt failed
- 14 - SSL Decrypt failed
- 201 - Not licensed (LicenseKey is not assigned, invalid, or
expired)
- 202 - Operation cancelled (If Proceed value in event handlers
(OnReceiveProgress, etc.) is set to False)
- 203 - Wrong parameter value (for example, attempt to receive message
with index 5, if only 4 emails are in mailbox)
- 211 - Selected authentication method is not supported by the server
- 212 - Selected authentication method failed for unknown reason (should
never occur, please contact Technical
Support Team if you encounter such error)
- 213 - Wrong UserName and/or Password. Authentication
failed
- 214 - connection established, but message count is not available
- 215 - connection established, but messages' sizes are not available
- 216 - other command failure
Value Type: |
Long |
|
Parameters: |
None |
|
Remarks: |
This property
is read-only |
Usage example:
Dim Mailer
Set Mailer = CreateObject("MailBee.POP3")
Mailer.LicenseKey = "put your license key here"
Mailer.Connect "mailserver.com", 110, "MyName", "MyPassword"
If Mailer.IsError Then MsgBox "ErrCode = " & Mailer.ErrCode
Mailer.Disconnect
See Also:
IsError
Property
ErrDesc Property
Ping Method
Abort Method
Copyright © 2002-2024, AfterLogic
Corporation. All rights reserved.