cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment issues in Receive Mail Adapter

Former Member
0 Kudos

Hi All,

I have following scenario :  File -> Mail

From file channel , I am picking 2 files: abc.xls and def.dat by checking additional files so that these 2 files will come as an attachment in the payload to PI .

Now in Receiver mail adapter , I have checked mail package and keep attachment option .

I am getting an email with the 2 fattachments (abc.xls and def.dat which were picked from the sender channel )

But the attachment names in the mail is : abc.xml , def.xml

Can anyone guideme regarding how to retain the file extension in  the email attachments.  My final email should contain

abc.xls and def.dat as attachments .

Regards

Vinay

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Vinay,

You can use standard module localejbs/AF_Modules/MessageTransformBean and

parameter "Transform.ContentDisposition" in the Module configuartion of receiver mail adapter to rename the names of file attachments.

Thanks,

Vinod

former_member181985
Active Contributor
0 Kudos

Hi Vinay,

Please check my blog: Retaining SOAP Adapter Attachment Names

The concept will be applicable for mail adapter as well.

Regards,

Praveen Gujjeti

Former Member
0 Kudos

Hello,

Check below article (very much similar to what u need):

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/04/13/renaming-email-attachment-with-in...

Thanks

Amit Srivastava