cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Adapter - Dynamically maintaining To and From Parameters

Former Member
0 Kudos

Hi all,

I am using the mail adapter as receiver in my scenario where i need to set up the TO and FROM parameters dynamically in the adapter configuration. Can any body please suggest how to do that?

Thanks

-Kulwant

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kulwant

Use the mail package to make it dynamic

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

Thanks

Gaurav

justin_santhanam
Active Contributor
0 Kudos

Kulwant,

Did you gone thru this link?

http://help.sap.com/saphelp_nw70/helpdata/EN/6b/4493404f673028e10000000a1550b0/content.htm

use the below code



DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/Mail","THeaderTO");


String to_add = "sapient.xi@gmail.com"

conf.set(key, to_add);

return "";  

raj.

Edited by: Raj on Oct 29, 2008 3:55 PM