Home > Contents > Index >
EMAIL.TRANSLATEBODY
Translates the body of the e-mail.
Syntax
<EMAIL.TRANSLATEBODY NAME="email_object_name" PARAMS="names_values" VARNAME="variable_name" />Parameters
NAME (required)
- Name of the e-mail object.
PARAMS (required)
- Set of names and values. This parameter sets the values of all variables used in the subject and body. It is used as name/value pairs separated by an ampersand (that is, &).
VARNAME (required)
- Name of the output variable to create. This variable contains the modified body of the e-mail.
Error Numbers
The possible values of
errno
include:
Value Description -105 Email object has a name conflict.Example
The following code creates and loads an e-mail object, sets the body of the e-mail, and then translates the body of the e-mail from the original body to the modified body.
<!-- Create and Load e-mail object--> <EMAILMANAGER.CREATE OBJVARNAME="emailObj"/> <EMAILMANAGER.LOAD NAME="AssignmentDueReminder" OBJVARNAME="emailObj"/> <br/> <!-- Sets the value for e-mail body --> <EMAIL.SETBODY NAME="emailObj" VALUE="This is my email body"/> <br/> <!-- Gets the value for e-mail body --> <EMAIL.GETBODY NAME="emailObj" VARNAME="emailBodyOutput"/> <br/> <!-- Translates the body of the e-mail --> <SETVAR NAME="paramBody" VALUE="instruction=Translate the body"/> <EMAIL.TRANSLATEBODY NAME="emailObj" PARAMS="Variables.paramBody" VARNAME="body"/> <br/> Modified Body is: <CSVAR NAME="Variables.body"/><br/><br/>
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.