/* Create a multipart message */
RUN createMultipartMessage IN hPTPSession (OUTPUT hMessage). /* Create a Sonic text message */ RUN createTextMessage IN hPTPSession (OUTPUT messagePartH). RUN setText IN messagePartH (cTextString). /* Add part to multipart message */ RUN addMessagePart IN hMessage (INPUT messagePartH, INPUT contentIDString). /* Add a memptr part */ RUN addBytesPart IN hMessage (memptr, contentTypeString, contentIDString). /* Add a text part */ RUN addTextPart IN hMessage (memptr, msgTextString, contentTypeString, contentIDString). |