We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

About MailMessage.Decrypt()


Can you explain how to use this Decrypt() method when we don’t specify any certificate? How it uses the system information in actual?

Hi Leo,

Than you for posting your inquiry.

The API actually calls EnvelopedCms.Decrypt method when call to Decrypt is made. You can check the details about it in MSDN here: https://msdn.microsoft.com/en-us/library/dyk1w15y(v=vs.110).aspx

In order for this to work, appropriate certificate should be added in the current user and computer’s My Stores. It throws System.Security.Cryptography.CryptographicException if appropriate certificate does not exist in store.

Please feel free to write to us if you have any further query in this regard.