cancel
Showing results for 
Search instead for 
Did you mean: 

Sender mail adapter

dhagigeorgiou
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello everyone,

We are trying to configure a sender mail adapter.

We have followed a number of sdn threads. What we are missing is how to incorporate the attachement in the payload.

In the mail adapter modules we have used the following;

localejbs/AF_Modules/MessageTransformBean = trans

localejbs/AF_Modules/PayloadSwapBean = swap1

localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean = mail

and in module configuration

swap1 => swap.KeyName = Content-Description:

swap2 => swap.KeyValue = MailAttachement-1

The message bytes from MessageSyste monitor is

........

<xim:Mail xmlns:xim='http://sap.com/xi/XI/Mail/30'><Subject>Please process this product..</Subject><From>"Iacovos G. Molodanof" &#60;iacovos.molodanof@omegatransport.com&#62;</From><To>"xitest xitest" &#60;xitest@omegatransport.com&#62;</To><Content_Type>text/plain;charset="us-ascii"</Content_Type><Date>2007-06-13T14:57:25Z</Date><Message_ID>&#60;F4E91313FA6B0B4099F7D47ED67DE5885DB311@athemail.omgtrlg.com&#62;</Message_ID><Content></Content></xim:Mail>

--SAP_755e57b1-19be-11dc-abb9-0014c2595275_END

Content-ID: <payload-659c395519be11dc9dc80014c2595275@sap.com>

Content-Type: application/octet-stream;name="STKOPR (128).TXT-0701301121"

Content-Disposition: attachment;filename="MailAttachment-1.bin"

Content-Description: MailAttachment-1

2100 SA4005/02 8712581319021 MP3 0019.5 0013.5 0004.0 00000001053.0 &#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533; 000001

SAP_755e57b1-19be-11dc-abb9-0014c2595275_END

.

Any help would be greatly appreicated.

Thanks a lot

Dimitris

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Check this blog by Michal, it describes exactly what you want,

/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step

Regards

Bhavesh

Answers (3)

Answers (3)

dhagigeorgiou
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you all for your input.

DH

bhavesh_kantilal
Active Contributor
0 Kudos

In your case , the parametes to be used would be,

PayloadSwapBean TRANS

TRANS swap.keyName Content-Disposition

TRANS swap.keyValue attachment;filename="MailAttachment-1.bin"

TRANS swap.keyName Content-Description

TRANS swap.keyValue MailAttachment-1

You do not need MessageTransformBean here.

Regards

Bhavesh

Former Member
0 Kudos

Hi,

This is the How to guide given by SAP..just try this

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1...

Regards

Hemant

Award points if find helpful