cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Substitutionin Receiver Mail Adapter

Former Member
0 Kudos

Hi,

I am trying Receiver Mail Adapter without using Mail Package.

I want to set the To, From and the Subject dynamically from the payload.

How can this be done?

Thanks,

Aravind

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I had tried the same thing once in my receiver mail adapter.

You can dynamically configure that in your message mapping

like :- DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/Mail", "THeaderSUBJECT")

and use THeaderTO,THeaderFROM as per your requirements.

Former Member
0 Kudos

Thank you.

This worked

Answers (3)

Answers (3)

Former Member
0 Kudos

One more thing Aravind

For other options available refer to the link:

[http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm]

Former Member
0 Kudos

Hi Aravind,

The mail adapter needs to enable the option Use mail package.

Ref: /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address

Thanks,

former_member200962
Active Contributor
0 Kudos
Variable Substitutionin Receiver Mail Adapter

it happens in File adapter

I want to set the To, From and the Subject dynamically from the payload.

THeaderTO, THeaderFROM, THeaderSUBJECT....wont these ASMA work?