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 1xx are specific to SMTP 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.SMTP")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.SMTP")
'In ASP use Response.Write instead of MsgBox
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.