cancel
Showing results for 
Search instead for 
Did you mean: 

Body & Attachment using Mail adapter

arunneerolil
Contributor
0 Kudos

Hi All,

Using a mail adapter is it possible to send a mail

with both custom content(body) and payload as attachment ??

In my scenario if i am rejecting an incoming XML

message. I must send back the XML message as

attachment also the content of the mail must be

the reason for rejection which is also a variable.

Can anyone help.

Thanks in advance.

Chemmanz

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Chemmanz,

it is possible...but if u r using a receiver mail adapter and ur incoming message doesn't contain attachment then by default the payload will go as an attachment. But if you want some part as content and some as attchment, then you need to write a module to create an attachment explicitly in module and append it to the message.

Regards,

Akshay

Former Member
0 Kudos

Hi Chemanz,

<i>Using a mail adapter is it possible to send a mail

with both custom content(body) and payload as attachment ??</i>

I think this should be possible. Check out modules Messagetransformbean and payloadswapbeans.

They have a feature where u can specify both the message body/attachment as inline/attachments.

cheers,

Prashanth

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Chemmanz,

Comibing these two articles / blog maybe you can arrive at a solution,

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

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c...

Regards,

Bhavesh