SMIMEError Property
Gets the code of the last occurred SMIME
error.
Value Type: | Long | |
Parameters: | None | |
Remarks: |
MailBee supports the following error codes:
The developer can get the code of the last occurred specific SMIME error using the SMIMESpecificError property. |
Usage example:
' This example loads the message from file and tries to add the recipient's certificate to the storage. ' If the adding fails, the code of the occurred SMIME error is displayed. Dim objMsg, objSMIME ' Using Visual Basic to create the objects Set objMsg = CreateObject("MailBee.Message") Set objSMIME = CreateObject("MailBee.SMIME") ' Using ASP to create the objects 'Set objMsg = CreateObject("MailBee.Message") 'Set objSMIME = Server.CreateObject("MailBee.SMIME") ' Specify MailBee license key objSMIME.LicenseKey = "put your license key here" ' Load the message from file objMsg.ImportFromFile "mail_src.eml" ' Specify the message for the further processing Set objSMIME.Message = objMsg ' Add the recipient's certificate to the storage objSMIME.AddRecipientCert "AddressBook", 0, "", "", "", objMsg.PureToAddr ' Display the code of the occurred SMIME error ' In ASP use Response.Write instead of MsgBox MsgBox objSMIME.SMIMEError
See Also:
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.