Programmatically encrypt Outlook email using Inspector

后端 未结 2 453
逝去的感伤
逝去的感伤 2021-01-23 06:30

I\'m using C# with Outlook Object Model (Redemption is not an option for me due to licensing) and I\'m having difficulty programmatically encrypting an email message before send

2条回答
  •  甜味超标
    2021-01-23 06:46

    There's actually a better way to programmatically encrypt, sign, encrypt + sign, or ensure neither. And you can do it without having to display the mail item. The following article shows how, using a property of the mail item:

    http://support.microsoft.com/kb/2636465?wa=wsignin1.0

    For example, in C#, if mItem is your mail item, then the following code would turn off signing and encryption:

    mItem.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x6E010003", 0);
    

提交回复
热议问题