cancel
Showing results for 
Search instead for 
Did you mean: 

File With Attachment to Mail with Attachment

Former Member
0 Kudos

I'm developing above scenario. I want to retain the name of the attachment. Is it possible to do with UDF ?. Attachment is in csv format and Main file may be txt format.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

try to get some hints having a look to my blog:

/people/francesco.bersani/blog/2007/03/27/rename-attachment-adapter-module

Please remember that the code specified is for XI 3.0.

If you're using PI 7.1 or above you need to adjust the code.

Francesco

Former Member
0 Kudos

Hi, I tried with the code in your blog. I sent test123.txt and test123.csv file as attachment. In SXMB_MONI and Receiver Communication channel SOAP header as well attachment name has been changed to test123.csv. But when Email is received thru exchange server attachment name getting changed to "untitled.xml" ..

Any Clue ?

Former Member
0 Kudos

Use MessageTransformBean module in adapter configuration to achieve this.

Enter "localejbs/AF_Modules/MessageTransformBean" as the module. Select the Type "Local Enterprise Bean" and select a value for Module Key. Use this module key to create the following three lines in Module Configuration:

Transform.ContentDisposition attachment;filename="myfilename.csv"

Transform.ContentDescription myfilename.csv

Transform.ContentType application/xls;name="myfilename.csv"

Regards,

TK