cancel
Showing results for 
Search instead for 
Did you mean: 

send a mail with a body and attachment

Former Member
0 Kudos

Hi guys!!!!

I have a RFC -> XI -> Mail Scenario!

I'm able to send text in the body of the mail. I'm able to send text as an attachment. But I'd like to send both (text in the body and other text as an attachment). How can I do this?

thanks in advance

Julio

Accepted Solutions (1)

Accepted Solutions (1)

jagesh_lakdawala
Active Participant
0 Kudos

Hi Julio,

I have also the same requirement.

I have tried for this by using the Boundry option as suggested in this forum. but I didnt get the success.

If you have solved it then please give me the step by step for this.

Thanks in advance.

Regards

Jagesh

Former Member
0 Kudos

First, I'd like to thank all the replies! And Jagesh, I solved my problem reading the thread you told me.

I created a message as follow:

<?xml version="1.0" encoding="UTF-8"?>

<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">

<Subject>test</Subject>

<From>test_source @ abc.com</From>

<To>test_target @ abc.com</To>

<Content_Type>multipart/mixed; boundary="AaBb--984dfgeSSd3532"</Content_Type>

<Content>*AaBb984dfgeSSd3532*

Content-Type: text/plain

Hello, this is sample data.

*AaBb984dfgeSSd3532*

Content-Type: text/plain;name="CSV_data.csv"

abc

</Content>

</ns:Mail>

In addittion to this, I configured Mail channel as follow:

Content encondig = none

Keep Attachments = false

Answers (4)

Answers (4)

Former Member
0 Kudos

If you have selected XIPAYLOAD as the message protocol and you want to forward XI attachments in the e-mail attachments, select Keep Attachments.

for detail see this

[http://help.sap.com/saphelp_nw04s/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm]

and this [http://help.sap.com/saphelp_nw04s/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm

jyothi_anagani
Active Contributor
0 Kudos

Hi,

Refer this link. It will really help you.

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

and check SAP Note 748024

Thanks.

former_member732072
Active Participant
0 Kudos

Hi Julio,

Please have a look at the following links and see if it helps

and

Best Regards

stefan_grube
Active Contributor
0 Kudos

You can do this with a Java mapping like this:

/people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping