Discuss this help topic in SecureBlackbox Forum
S/MIME: Create signed and encrypted message
The simpler option is to use Simple MIME Message Composer (TElSimpleSMIMEMessage class) and follow the instructions provided in this how-to article.
The alternative option is to combine the instructions for creating signed and encrypted messages.