Encrypted Property


True if the message is encrypted; otherwise, False.

If the message is encrypted, the developer can use the Decrypt or DecryptAndVerify method to decrypt it.

Also, the developer can use the AlgorithmEncryption property to get the name of algorithm which was used to encrypt this message.


Value Type: Boolean
Parameters: None 
Remarks:

This property is read-only.


Usage example:

' This example loads the message from file and checks if this message is encrypted.

Dim objSMIME, objMsg

' 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 = Server.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

' Check if the message is encrypted
MsgBox objSMIME.Encrypted

See Also:

Signed Property, Verified Property


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