cancel
Showing results for 
Search instead for 
Did you mean: 

file to mail with attachment and content

Former Member
0 Kudos

Hi friends,

I have a scenario where I need to pick an .xls file from a folder and send this as an attachment in mail. I was able to achieve upto this point where I'm picking up the file and sending it as an attachment in the email using MessageTransformBean.

But im not sure how to set the content of the mail. I file I picked should go as an attachment and I need to specify the content of the file also which is always constant string.

for ex: " this is the content of the mail"

Thanks,

Bhargav

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

What are you doing with attacments in the X I. Can you post more details on this

Rajesh

VijayKonam
Active Contributor
0 Kudos

Configure your sender file adapter for additional files and send this xls as attachment. In the mapping use a simple message type which has a single field and has ur constant mail body data. In the mail adapter check keep attachments and use XIPAYLOAD as message protocol.

You should b all set. I do not think u need to use message transform been. You might want to search the forum for sudhir porumamilla's blog for sending attachments using file adapters.

VJ