Signed Property


True if the message has a digital signature; otherwise, False.

If the message is signed, the developer can use the Verify method to make sure the message was written by the known author and it was not altered during the transmission.

Also, the developer can use the AddSignerToStore method to save the certificate of the message sender to the storage for the further use.


Value Type: Boolean
Parameters: None 
Remarks:

This property is read-only.


Usage example:

' This example loads the message from file, verifies it and shows to whom the sender's certificate was issued.

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

' Check if the message is signed
if objSMIME.Signed Then
	' Verify the message
	objSMIME.Verify
	
	' Display to whom the sender's certificate was issued
	' In ASP use Response.Write instead of MsgBox
	MsgBox (objSMIME.SenderCert.IssuedTo)
End If

See Also:

Sign Method, Verify Method, AddSignerToStore Method


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