Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Mail_Receiver: Send Mail with attachment

Hi everybody,

I need some help. I want to send a mail with attachment.

for this I have imported SAPs xsd for the mail adapter.

I wonder how to map the target fields?

The following causes five! attachments in SXMB_MONI and the adapter throws

java.lang.IllegalArgumentException: can't parse argument number

<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
   <ns0:Message1>
      <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
         <Subject>SubjctName</Subject>
         <From>mailadress</From>
         <To>mailadress</To>
         <Content_Type>text/plain; charset=&quot;ISO-8859-1&quot;</Content_Type>
         <Content_Description>
            <attachment filename="filename.txt">This should be the content of the attachment</attachment>
         </Content_Description>
         <Content>Constant</Content>
      </ns1:Mail>
   </ns0:Message1>
</ns0:Messages>

How do I have to foll the target fields?

Thanks regards

Mario

Former Member
Former Member replied

Hi Mario,

I recommend using Java mapping for sending mails with attachment:

XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping

Regards

Stefan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question