[Portions of this MIME document are encrypted with

I am trying to automate the encryption on the back end using the “EncryptOnSend” but it does not work. In the front end it works fine. I wonder if this is an unsupported feature in notes. Have anyone successfully done it?