cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Mail Adapter message with PDF attachment

Former Member
0 Kudos

Hi.

We are trying to generate emails from the mail adapter that includes the plain text in the body of the resulting email and an attached PDF file. We receive the following structure:

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

<ns0:newMailRequest_MT xmlns:ns0="http:/pdk/sap/TorstenTest">

<Sender/>

<Receiver/>

<BodyContent/>

<Subject/>

<Attachment/>

</ns0:newMailRequest_MT>

I have set up an interface and mail adapter to be able to produce emails with plain text in the body. I used SAP note 748024 for this.

So right now I can make XI send emails with dynamic mail addresses. My problem lies in sending attached files with the mails as well.

I have read most of the threads in here, but none of them seem to answer just how to include the attachment. Which field in the 'Mail' message type is used for the attachment??

What needs to be added to the communication channel and adapter for it to include attachments, while the body of the mail still keeps the plain text message??

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you for your replies.

I have read the blogs, and various other threads, notes and blogs.

But I still don't know how to map the attachment field in the integration repository.

My mapping looks as follows:

<b>MyMail</b> (own Message Type) -


> <b>Mail</b> (Message Type from SAP note 748024):

Sender -


> From

Receiver -


> To

BodyContent -


> Content

Subject -


> Subject

Attachment -


> ???????? (currently not mapped)

Where do I map the Attachment??

There are several unused fields in the 'Mail' message type from the SAP note. These are: Reply_To, Content_Description, Content_Disposition, Content_Type, Date, Message_ID, X_Mailer

former_member201264
Active Contributor
0 Kudos

hi

I have used the following links to send the file as an attachement and as payload.

so it may help u.

links:

/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options , mail attatchment

Sender mail adapter - PayloadSwapBean - Step by step - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c...

/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]

/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter

points if helpful.

regards

sreeni

prateek
Active Contributor
0 Kudos

See these

/people/sravya.talanki2/blog/2006/11/28/e-mail-xml-messages-in-pdf-format-from-sap-xi

/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure

Regards,

Prateek