ucChangeEmailHeader

Purpose

This user exit performs two tasks:

The user can modify the values for EMAIL_FROM_USER_NAME and EMAIL_FROM_USER_ID.  These values are populated by default from behavior settings with these same names and they are used as the FROM name and address within standard outgoing email headers.

The user can specify 2 new variables to be used as a REPLY-TO value in the outgoing standard email header.  These have the names;

EMAIL_REPLY_TO_NAME
EMAIL_REPLY_TO_ADDRESS

Applies To

API

Signature

public void ucChangeEmailHeader( SesameSession session,
                                 Connection dbconn,
                                 String problemId,
                                 HashMap emailVariables )

Notes

Values are passed in a hashmap and the method returns a hashmap.

Example

// just supply REPLY_TO header info
public void ucChangeEmailHeader( SesameSession session,
                                 Connection dbconn,
                                 String problemId,
                                 HashMap emailVariables ) {
    emailVariables.put("EMAIL_REPLY_TO_ADDRESS", "replytoaddress@my_company.com");
    emailVariables.put("EMAIL_REPLY_TO_NAME", "myname");
}