Previous Topic: encodingNext Topic: template


additionalHeaders
_additionalHeaders

Specifies extra email header attributes in the email template.

You must assign a HashMap() to this attribute. The names and values stored in the HashMap must be strings.

Example: Add custom header attributes

The following example shows you how to add two custom header attributes, “X-TCCCSWD” and “myheader”:

<!-- Define the E-mail Properties ---> 
<% 
_to = "siteadmin@ca.com"; 
_cc = "" ; 
_bcc = "" ; 
_subject = _eventContextInformation.getEventName() +" completed"; 
var additionalHeaders = new java.util.HashMap(); 
additionalHeaders.put("header_a","1"); 
additionalHeaders.put("header_b","foo"); 
_additionalHeaders = additionalHeaders; 
%>