MailMill .NET Class Library

Mail.ReceiversCertificateLocation Property

Gets or sets an MM_STORE_LOCATION value that specifies the location of receivers certificates.

public MM_STORE_LOCATION ReceiversCertificateLocation {get; set;}

Remarks

All recipients certificates must be present in this store to encrypt a message. This include the Tos recipients, the Ccs recipients and the Bccs recipients.
By default, ReceiversCertificateLocation is set to MM_STORE_LOCATION.mmStoreCurrentUser.

Exceptions

Exception Type Condition
ArgumentException ReceiversCertificateLocation is set with and invalid MM_STORE_LOCATION value.

Example

This sample shows how to change the receivers certificates location.

Mail oMail = new Mail();
oMail.Encrypt = true;
oMail.ReceiversCertificateLocation = MM_STORE_LOCATION.mmStoreLocalMachine;

See Also

Mail Class | MailMill Namespace | MM_STORE_LOCATION | Encrypt | EncryptionAlgorithm | Tos | Ccs | Bccs