cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver mail Adapter >> Rename Attachments

Former Member
0 Kudos

Hi Experts,

In an Proxy --> XI --> Mail scenario, how do I configure the Mail Receiver Adapter to rename attachments?

There is a PDF file and a DOC file that the Proxy is sendign to PI and I can see them in the payload with filenames file1.pdf and file2.doc

How do I configure the Mail receiver adapter to send them as attachments retaining the same filenames? Can I atleast assign any other name to the files?

Any method other than writing own Adapter Module?

Regards,

Shobhit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Shobhit

If the attachment name is not dynamic (like timestamp) etc then you can use MessageTransformBean to change the attachment name at Mail adapter level.

Transform.ContentDisposition attachment;filename ="yourfilename.extension"

Transform.ContentDescription attachment name

Transform.ContentType your type like text/plain or application/pdf.

If you are using Mail package then you can set the attachment name from mapping itself.(here even Timestamp and Dynamic values work)

Thanks

Gaurav

Former Member
0 Kudos

hi,

Check the following link for the standard modules existing

http://help.sap.com/saphelp_nw2004s/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/frameset.htm

regards

Ramesh p