cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic filename in receiver mail adapter

Former Member
0 Kudos

Hi Experts,

We have a requirement to pick up PDF file and send the PDF as attachment to email where filename and subject are dynamic. The filename of the attachment should be the same filename of the PDF.  We used mail package and followed the steps in this wiki

http://wiki.scn.sap.com/wiki/display/XI/Dynamic+Email+Attachment+name+for+Received+Mails

Upon testing, the filename of the email attachment became dynamic however, the PDF file attached in the email seems corrupted and we're getting the error 'Adobe Reader could not open 'XXXXX_XXXXX.pdf' because it is either nor a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)."

How can we make it work completely?

Thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

RaghuVamseedhar
Active Contributor
0 Kudos

Hazel,

I think, you can try Java Mapping.

Answers (2)

Answers (2)

Former Member
0 Kudos

You may wish to avoid the mail package since it is not supported in the future.

This thread is gold:

Former Member
0 Kudos

Hi Hazel Ann Dinglasan,

please check the format mentioned for content_description in mapping and file name given.

  • Content_Disposition should contain the value in the following format.           

          Format: "attachment;filename="<filename>"",

please also check

Regards,prasanth