SenderCert Property


Gets the CertInfo object which contains the information about the message sender's certificate.


Value Type: CertInfo Object
Parameters: None 
Remarks:

In SMIME, "message sender" is an entity which composes a new message and signs it. On the other hand, "message signer" is an entity which signed a message which was received rather than is being created now.

 

In other words, the developer should examine the SignerCert property when processing a message which was received from mail server. The only use of SenderCert property is to collect information about the certificate which is to be used to sign a new message (for instance, if the developer wants to find out the details of the certificate set by SelectSenderCert method).


Usage example:

' This example loads the message from file, selects recipient's certificate from the storage and displays to whom this 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 = 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

' Select sender's certificate from the personal user's storage
objSMIME.SelectSenderCert "MY", 0, "", "", "", objMsg.PureFromAddr, ""

' Displays to whom this certificate was issued
' In ASP use Response.Write instead of MsgBox
MsgBox (objSMIME.SenderCert.IssuedTo)

See Also:

SignerCert Property, SelectSenderCert Method, CertInfo Object


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