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 1xx are specific
to SMTP 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 an interval
specified in 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 calling 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
- 101 - Not licensed (LicenseKey is not assigned, invalid, or
expired)
- 102 - Operation cancelled (If Proceed value in event handlers
(OnSendProgress, etc.) is set to False)
- 111 - ESMTP authentication is not supported by the server at all
- 112 - Selected ESMTP authentication method is not supported by the
server
- 113 - Selected authentication method failed for unknown reason (should
never occur, please contact Technical
Support Team if you encounter such error)
- 114 - Wrong UserName and/or Password. Authentication
failed
- 115 - local host name not resolved (local host name is used as a
Domain property value if both Domain property and FromAddr
are empty)
- 116 - other command failure
- 121 - a sender and at least one recipient must be specified
- 122 - this sender is not allowed by this mail server
- 123 - this recipient is not allowed by this mail server. This may
also mean maximum allowable number of recipients is already reached
- 124 - the server rejected DATA command
- 131 - could not create new filename for queued message (message created
with SendToQueue method). Perhaps DirPath parameter points to
invalid directory
- 132 - failed to save queued message file. Check if free space is
available on target drive, permissions are set, etc.
- 133 - could not read rfc822 message file from the specified location
(RelayMessage causes this error if FilePath parameter points
to invalid file path)
Value Type: |
Long |
|
Parameters: |
None |
|
Remarks: |
This property
is read-only |
Usage example:
Dim Mailer
Set Mailer = CreateObject("MailBee.SMTP")
Mailer.LicenseKey = "put your license key here"
Mailer.ServerName = "mailserver.com"
Mailer.Connect
If Mailer.IsError Then MsgBox "ErrCode = " & Mailer.ErrCode
Mailer.Disconnect
See Also:
IsError
Property
ErrDesc Property
SendToQueue Method
RelayMessage Method
Abort Method
Copyright © 2002-2024, AfterLogic
Corporation. All rights reserved.