cancel
Showing results for 
Search instead for 
Did you mean: 

Change Content-Type: multipart/related to multipart/mixed

pekka_pottonen
Participant
0 Kudos

Hello,

We have a scenario where we send Idoc-xml as email attachment. Now it sends them with content type multipart/related and receiver cannot use them in that way. How do I change content type to multipart/mixed? This might help extracting attachment.

Mail adapter, Transport protocol, SMTP, message protocol, XIALL.

Regards

Pekka

Accepted Solutions (1)

Accepted Solutions (1)

pekka_pottonen
Participant
0 Kudos

Any ideas, anybody? I have not solved this yet.

-Pekka-

stefan_grube
Active Contributor
0 Kudos

You can change the content type with a parameter to the mail adapter.

There is a SAP note for this, check for it.

Regards

Stefan

pekka_pottonen
Participant
0 Kudos

Note found and problem solved. Thanks.

Answers (3)

Answers (3)

pekka_pottonen
Participant
0 Kudos

Hello again,

My solution works and does not work. Content type is ok, but strange characters appear to the end of the attachment data.

Like this

...</E1EDS01></IDOC></ORDERS01>H úãž6×½ ã½5Õ×¼ÛgžÛNÝ}þ[ëMu201E

Where did these come from? I tested in a way that I changed the ContentType back to application/xml and attachment is fine again.

Regards,

Pekka

pekka_pottonen
Participant
0 Kudos

Hi,

Following seems to work.

Module key: rename

Parameter name: Transform.ContentType

Parameter value:multipart/mixed;name="Order.xml"

-Pekka-

henrique_pinto
Active Contributor
0 Kudos

Use the MessageTransformBean module.

Search for more details.

Best,

Henrique.

pekka_pottonen
Participant
0 Kudos

Hello again,

My solution works and does not work. Content type is ok, but strange characters appear to the end of the attachment data.

Like this

...</E1EDS01></IDOC></ORDERS01>H úãž6×½ ã½5Õ×¼ÛgžÛNÝ}þ[ëMu201E

Where did these come from? I tested in a way that I changed the ContentType back to application/xml and attachment is fine again.

Regards,

Pekka