Page tree
Skip to end of metadata
Go to start of metadata

Setting up high importance mail in receiver mail adapter
Applies to:
 SAP NetWeaver Process Integration 7.10
We have a client requirement to trigger a mail with the error information. The mail being sent should be marked with high importance for certain interfaces based on criticality.
Author(s):  Ram Pranav Godishala
Company:     Wipro Technologies
Created on:    26 Dec 2011
Author(s) Bio : Ram Pranav G is currently working on SAP PI 7.1 at Wipro Technologies. He has also worked on SAP PI 7.0.
Table of Contents

We have a client requirement to send mails with high priority to the receiver system so that they can act accordingly. We can achieve this using the Mail receiver

We are using the html header parameters Importance, X-Priority for MS Outlook used for the same to achieve this.
In the mapping we need to pass the values for the variable header parameters dynamically as
Importance = high and X-Priority = 1.
This is an example of a code sample: 

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("", "XHeaderName1");
conf.put(key1 ,"high");
DynamicConfigurationKey key2 = DynamicConfigurationKey.create("", "XHeaderName2");
conf.put(key2 ,"1");
return "";


We  shall be passing the html MS Outlook header parameters (Importance, X-Priority) in the variable header list as shown in the screenshot below:

Related Content
References from

Useful Information

We can send mail with high importance using mail receiver ASMA parameters