on 05-10-2009 5:20 PM
Hi,
I have scenario where one input message creates more then one e-mail messages, that are to be sended to different mail receivers. How to do this? Is it possible to do some trick like "IDOC bundling".....
thx
mario
hi,
>>>Is it possible to do some trick like "IDOC bundling".....
idoc bundling works for many messages to one
you need one message to many receivers
just specify many receivers in the receiver determination
that's all you need to do
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure that you understand the problem. So one input message creates more output mails that are t obe sended to different mail adresses. I'm trying to create more XML output messages:
<?xml version="1.0" encoding="UTF-8"?>
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Subject</Subject>
<From>namea</From>
<To>first_mail</To>
<Reply_To />
<Content_Type>text/plain</Content_Type>
<Content>
Message 1
</Content>
</ns:Mail>
<?xml version="1.0" encoding="UTF-8"?>
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Subject</Subject>
<From>namea</From>
<To>second_mail</To>
<Reply_To />
<Content_Type>text/plain</Content_Type>
<Content>
Message 2
</Content>
</ns:Mail>
I'm not sure that is the solution, because I could have one mail, two mails, or n different mails. They all have the same structure, like this:
<?xml version="1.0" encoding="UTF-8"?>
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Subject</Subject>
<From>namea</From>
<To>second_mail</To>
<Reply_To />
<Content_Type>text/plain</Content_Type>
<Content>
Message 2
</Content>
</ns:Mail>
Only differences are in tag <To> and tag <Content>, which are dependent on input message. What I had in mind, was to create one super message, which could consist of more mail messages, and which is once transfered to com.channel and distibuted to mail adresses. I hope I explained my problem/idea.
Only differences are in tag <To> and tag <Content>, which are dependent on input message.
maybe this blog by michal help you in configuring the <To> tag:
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
As suggested you will need to implement a multiple-mapping logic in your mapping so that you have n different mail messages generated at the target ..each with a different <To> and <Content> tag....
Regards,
Abhishek.
If you need to send data to different receivers based on the some input data you can go for lookups and fetch the mail address based on the input data ...and then use dynamic configuration for ToHeader field of mail adapter..
but I thing you have to go for multimapping here...
Rajesh
Edited by: Rajesh on May 11, 2009 10:45 AM
Hi Mario,
You can use all mail ids separated by a semicolon ( in the xml structure
Regards,
Divya
Edited by: Divya Nambiar on May 10, 2009 6:27 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.