I am trying to send an xml as an attachment to my own email id,
i am invoking the following services
pub.file.getFile(Input(sample.xml)
pub.flow.bytesToString
pub.client.smtp
to(myname@yahoo.com)
from(myname@yahoo.com)
mailhost(xyz.org)
body
filename(what should i specify here) if i dunot specify this its saying file not specified
I think you have something set/specified within the attachments list(documentList) and its looking for the fileName to be sent as attachment. AttachmentsList and fileName are optional.
You can use any mail host name style as long it is valid/resolvable.