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="">
      <ns1:Mail xmlns:ns1="">
         <Content_Type>text/plain; charset=&quot;ISO-8859-1&quot;</Content_Type>
            <attachment filename="filename.txt">This should be the content of the attachment</attachment>

How do I have to foll the target fields?

Thanks regards


Former Member

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



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