cancel
Showing results for 
Search instead for 
Did you mean: 

Filename of Attachment in Mail

Former Member
0 Kudos

Hi,

We have a scenario in which a mail with body and attachment (an excel sheet) has to be sent.

We have configured MessageTransformBean and PayloadSwapBean to manage this. However, we are getting both files as attachments and there is no mail body.

Moreover, we would also like to have filename with timestamp attached to it.

Please provide your inputs at the earliest. Helpful answers would be surely awarded with points.

Thanks,

Bhavish

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos
Former Member
0 Kudos

Hello Bhatia,

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

And also check....

Dynamic File Name Part 1

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

Dynamic File Name Part 2

/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii

With Regards,

Vidya

*************please reward with points if found useful

stefan_grube
Active Contributor
0 Kudos

This is one of the frequently asked questions in this forum, but there is no easy solution for this. The filename can only be set in a self-written adapter module.

The interpretation of the mail body and attachment is different for each email client.

If you use Microsoft Outlook, the mail parts are interpreted always as attachment.

In other email client it helps to set content-disposition to inline.

Regards

Stefan

Former Member
0 Kudos

Isn't it possible to create a file with the file adapter with an at runtime created filename and then pick it up again and send it by mail?

Is the file name overwritten in that case?

Regards

Ron

Former Member
0 Kudos

Hi,

Any inputs on this one?

Bhavish