SMTP ERROR

Hi all,

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

Thank’s
Rohit

Regarding mailhost can i mention any one of these (where xyz is my company mailhost name)

smtp.xyz.org
mail.xyz.org
xyz.org
xyz

Rohit,

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.

~tS

Hi Rohit,

pub.file.getFile(Input(sample.xml) loadas Bytes

pub.client.smtp

map Body/bytes to attachements/content , contenttype as text/xml and filename as sample.xml

It will send xml file as attachement

Rohit,

Under Attachments input map the content object(with bytes)and set the filename(any thing you specify).

HTH,
RMG

Thanks guys its working fine when i made a mapping change from body/content,

Cheers
Rohit

(Learn From leaders)