I have tried providing the path name on attachments/filename and removed all other definitions on attachments and ran the service. It works. If any of the other definitions are provided. i am returning an attachement “XXX.dif”, data interchange format, which can be opened in excel.
It all works thanks for response and can some one tell me how to set priority of importance on pub.client:smtp service.
For setting priority of High you need to use mime services to accomplish
pub.mime:createMimeData
pub.mime:addMimeHeader (set inputs under mimeHeader/X-Priority) and map priority (setValue to 1) or X‐Severity =10 etc…
pub.mime:addBodyPart
pub.mime:getEnvelopeStream
pub.client:smtp (map the envStream to mimeStream) pub.io:closeStream
Please review the documentation also and test the above logic: