cancel
Showing results for 
Search instead for 
Did you mean: 

XI30 Mailadapter (Receiver): Use mail package

Former Member
0 Kudos

Hi

I am trying to set up the mail adapter in XI30 (receiver

i.e. sending mails out of XI) and want to use mail

packages to be able to specify the recipient dynamically.

Adapter configuration:

- SMTP

- XIPAYLOAD

- URL some IP adress

- Use mail package SET

- Keep attachments SET

IF I do not use mail packages but instead define an

email adress as a recipient in the Integration Builder

Configuration, this adapter config works.

BUT if I SET use mail package and try to define

FROM, TO and SUBJECT in the message, it does not

work.

I get the error message com.sap.aii.af.ra.ms.api.DeliveryException: Failed to call the endpoint.

Anybody got any ideas?

Best regards /Jes

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

we tried to use the mail-adapter but we defined the Interface-Object for the mail (like notice 748024) in the wrong namespace.

Check that the namespace is xmlns:ns="http://sap.com/xi/XI/Mail/30" as defined in schema.

Norbert

Former Member
0 Kudos

Had the same problem and disabled the date mapping.After that it worked fine....

Former Member
0 Kudos

Hi

I had the same problem. For it to work you have to use the strictly defined mailpackage format that is in XSD elsewhere in the forum.

Then to make the error go away I deactivated all fields in the mapping one by one (except to, from and subject) and found out that the DATE CREATED field was provoking the problem, so I deactivated it.

And yes you can use the mailpackage that way to do dynamic addressing of emails and to use the mapper to produce a more readable and concise email.

good luck

-Sam.

stefan_grube
Active Contributor
0 Kudos

You can download the xsd of the mail package from note 748024.

You can test this sample xml:

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

<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">

<Subject>Hallo XI</Subject>

<From>MyEmail@email.com</From>

<To>YourEmail@email.com</To>

<Content>Here you write the email text</Content>

</ns:Mail>

Former Member
0 Kudos

Hi Jes,

it looks like that you took the wrong direction! The option for using the mailpackage is only there if you define the communication channel as "Sender" meaning that you receive mails into XI from a mailserver. As you described you want to send out a mail from XI to an emailaddress. In this case you have to choose "Receiver" and then you don't have the option of using the mail package! Just use XIALL as the message protocol and SMTP as transport protocal, type in the mailserver name like "SMTP://any.ip.address" (the expression SMTP:// is absolutly necessary, without it doesn't work!) and user & password. The next part is to define FROM, TO and SUBJECT and that's it!

I got it working but only after applying SP 09!

Best