Hi,
When I look at your code for the service pub.client:smtp you are passing both.
--------fileName=newFile.txt
---------content=[string value]/[stringToStream for the input]/[stringToBytes for the input]
But the built in service guide says
"
content - byte, String, or java.io.InputStream Content of the message.
filename - String Name of a local file to be attached to the message. Used only if content is not specified. "
Can you check this if I am not wrong.
Meanwhile attach your package that has your code. Let me have a look at that.
#webMethods#Integration-Server-and-ESB#webmethods-Protocol-and-Transport