cancel
Showing results for 
Search instead for 
Did you mean: 

How to add attachment as zip using mail adapter in SAP CPI

former_member641164
Discoverer
0 Kudos
2,297

I am trying to send file in attachment as zip in CPI using mail adapter. I can only able to send attachment as text file.

Anyone who has built similar scenario for single file attachment or multiple files in attachment as zip?

Accepted Solutions (0)

Answers (3)

Answers (3)

Sriprasadsbhat
Active Contributor

Hello Subhojit,

Adding to Morten's reply below might help you.I have stored some payload in header named as ErrorAttachment same value passing in mail channel( in Header Name field )

Regards,

Sriprasad Shivaram Bhat

former_member641164
Discoverer
0 Kudos

Hi Sriprasad,

I am able to add attachment and the adapter is sending the attachment in mail. However, I am not getting the extension of the attachment as .zip.

it is giving extension as file, and when, I open the attachment in text, it is open as text file.

Thanks,

Subhojit

MortenWittrock
Active Contributor

Hi Subhojit

Take a look at this blog post: Adding Cloud Integration attachments in code

Regards,

Morten

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Subhojit,

Could you please share the screenshot of the mail channel and also have you selected mime type as zip as highlighted above.

former_member641164
Discoverer
0 Kudos

Please find the screenshot below.

former_member641164
Discoverer
0 Kudos

it is common for the all type of attachments. Once you download the attachment, there will be no extension.

for text/xml, the browser can handle it and hence, we can see the content in the browser. However, for zip, it is not so.