ErrCode Property

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):

Value Type: Long
Parameters: None 
Remarks: This property is read-only

Usage example:

Dim Mailer
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.POP3")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.POP3")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
Mailer.Connect "", 110, "MyName", "MyPassword"
If Mailer.IsError Then MsgBox "ErrCode = " & Mailer.ErrCode

See Also:

IsError Property
ErrDesc Property
Ping Method
Abort Method

Copyright © 2002-2022, AfterLogic Corporation. All rights reserved.