cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Adapter Use Mail Package, Mail Body and Attachment

Former Member
0 Kudos

Hello

Have some body a idea, how I can configure the mail adapter with use mail package, that I have in the mail a attachment with content from the messages and a mail body with also text from the message.

Thanks for your reply.

Regards Tom

The different Weblog , I have check:

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

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

/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address

Accepted Solutions (1)

Accepted Solutions (1)

former_member187339
Active Contributor
0 Kudos

Hi Thomas,

If you are configuring your Mail adapter as reciever then refer

http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm

your sender (say file) should have some message like this

<i>

<ml:Mail xmlns:ml=’http://sap.com/xi/XI/Mail/30’>

<Subject>Important</Subject>

<From>namea@company.com</From>

<To>nameb@company.com</To>

<X_Mailer>Outlook Express </X_Mailer>

<Content>

This is the content.

</Content>

</ml:Mail></i>

And for Sender Mail Adpater

http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm

Hope this will be helpful

Regards

Suraj

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

Hi Thomas,

this is <b>not</b> possible.

If you want to have mail with additional attachment, you need to provide this attachment already in the xml payload, or you have to write an Adapter Module to create a new attachment.

I have a code sample for creating an additional attachment here:

https://websmp201.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf

Regards

Stefan

Former Member
0 Kudos

Hello Suraj

Thanks for your answer. This Mail Package I use also, this is good working. But I must have from the content some data as attachment and also different data from content for the mail body.

Regards Tom

former_member187339
Active Contributor
0 Kudos

Hi Thomas,

<i>>>from the content some data as attachmentand also different data from content for the mail body.</i>

I didn't get you, how could you make some data from your content as an attachment.

Can you elaborate your scenario, so that it will be easy to help you.

Regards

Suraj

Former Member
0 Kudos

Hi Suraj

Thanks for your answer. I hope with this example, you see my problem:

<ml:Mail xmlns:ml=’http://sap.com/xi/XI/Mail/30’>

<Subject>Important</Subject>

<From>namea@company.com</From>

<To>nameb@company.com</To>

<X_Mailer>Outlook Express </X_Mailer>

<content>

<messsage>This must in the mail body</message>

<data>this must in the Attachment</data>

<data1>this must in the Attachment</data1>

</content>

</ml:Mail>

Regards Tom

Message was edited by: Thomas Neuhaus

Message was edited by: Thomas Neuhaus