I am afraid you have to extend the mendix module. Here is an example in java how you can sign an email with bouncy castle. https://github.com/bcgit/bc-java/blob/master/mail/src/main/java/org/bouncycastle/mail/smime/examples/CreateSignedMail.java - @Nils