Previous Topic: EMAILSUBJECT Statement—Define an Email SubjectNext Topic: EMAILWEBREPORT Statement—Specify Whether to Email a PeopleSoft Web Report


EMAILTEXT Statement—Define the Body Text of an Email

The EMAILTEXT statement defines the body text of the email to distribute to recipients of a PeopleSoft report.

Note: To use this statement, you must specify EMAIL or WEB in the OUTDESTTYPE statement.

Supported Job Type

This statement is optional for the PeopleSoft job type.

Syntax

This statement has the following format:

EMAILTEXT email_text
email_text

Defines the body text of the email. This value corresponds to the Message Text field in PeopleSoft.

Limits: Up to 1024 characters; case-sensitive

Note: Enclose values that contain delimiters (such as spaces) in double quotation marks.

Example: Include Body Text in an Email

This example runs a Crystal report and emails the output to recipients. The Crystal report runs under the VP2 operator ID. The output is sent to the email addresses specified in the EMAILADDR statement. The email includes a subject title and body text.

AGENT PSAGENT
EMAILADDR 'user1@example.com;user2@example.com'
OUTDESTTYPE EMAIL
OUTDESTFORMAT PDF
PSOPRID VP2
EMAILSUBJECT 'PeopleSoft Report Status'
EMAILTEXT 'The report is available for distribution'
PROCESSNAME XRFWIN
PROCESSTYPE Crystal