I have solved it. The class that composes the eMail body text uses a BSP application sap/bc/bsp/sap/swn_message1 that needs to be activated using transaction SICF.