Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
MichalKrawczyk
Active Contributor
0 Kudos
There've been a few posts on the forum on how to configure
a "dynamic" mail adapter - that is with the possibility of specifying the "To" field dynamically.
This is a short quide on how to do it but please keep in mind that I decided to show
only those steps that may be different from normal/standard XI configuration.

1. Repository configuration

We can start by adding a new namespace to our software component
(this is not the only way but I prefere to have everthing in one component for a better visibility).
So let's add a new namespace: "http://sap.com/xi/XI/Mail/30 "
Then let's add and "External Definition" (Interface Objects) of the mail message from SAP note: 748024
you can download it directly from:

https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt

this is a txt document but change the extension to xsd
and you can upload it as a "Category XSD Message"



Then we map our Message type to our uploaded Mail message definition
and let's disable unnecessary fields in the destination message (all except "Subject", "From", "To", "Content").



then test the mapping and you should get someting like this:



2. Directory configuration

In the directory configuration of the mail adapter choose XIPAYLOAD as a Message Protocol:



Add your Connection Parameters and choose "Mail package" in the mail attributes.



and that's it:)

If you have XI SP10 you can check the mail adapter status in the Adapter Monitor:

http://hostname:portnumber/mdt/amtServlet

If you want to add many lines to the content tag the only way (IMO) is to add it in the mapping because as far as I know you're not allowed to create many content tags.
25 Comments
Labels in this area