Sending email with Attachment problem

Hi,

I am trying to send an e-mail as an attachment using the smtp service. It is working fine if I map a local filename to the filename field in the smtp service, but not when I map the content.

If I do a ftp get and map the content to the content part of the smtp service it works, but if I use the getfile service (used for localfiles) I get a ClassCast Exception. Has anybody seen this and what do you think can cause this.

Thanks

When creating an email as an attachment, you have to map a value to the content input. A directory path will not work. I usually use pub.report:runStringTemplateOnPipe, then map “$txt” to the content field after I formatted the file the way I desire. I believe that body/bytes will also work.

The ClassCast Exception is usually a JVM error.