Hello,
The message you are trying to send is simple. You can use the pub.client:smtp service directly to construct a multi-part messasge. Use whatever services you need to get the content as a stream (pub.file:getFile if it is on the local server). Construct a single Document structure with matching fields as is used on the smtp service (contenttype, filename, encoding, charset, content) and map them to your values. For the contenttype, you can specify “application/pdf”. For the filename it is your choice. For the encoding, specify “base64”. You can leave the charset empty. Now construct an array Document with the exact fields as the smtp service is expecting. Append your single document to the array document and set that as the input on “attachment” field of the smtp service. Use the body field for your text message portion. I manually ran this test myself with success. Thank you. Good day.