Skip to Content
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: “
Then let’s add and “External Definition” (Interface Objects) of the mail message from SAP note: 748024
you can download it directly from:

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:


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.

To report this post you need to login first.


You must be Logged on to comment or reply to a post.

      1. Former Member
           I am new to SAP and I am trying to map a XML File data to the mail message definition on a simple scenario.

        What credentials should I give for service marketplace(where Do I need to register?) if I want to download that mail message definition link provided my Michael?

    1. Former Member
      I am also trying to use a different namespace. but I am getting the following error:

      error occured: [2006-06-13T05:53:00Z] unable to call the mailer; Failed to call the endpoint [null “null”]; nested exception caused by: expecting start tag: {}Mail, but found {}Mail at state 1

      Could you please let me know what could be the problem?

  1. Former Member
    I am facing a situation in which I need to enter a  /n –> new line feed or carriage return after some text. How do I do that by changing contents in the payload of the message using Mapping functions or user defined functions??

    Please advice.


  2. Hi Michal,

    Thanks for the wonderful blog…
    Does this work with SP9? I have been trying the same way but somehow itz not workin..



Leave a Reply