E-mailing the Results of a Snapshot Query
You can e-mail the results of a snapshot query to users
by creating an external operation and editing SavedSearchMailer.bat or SavedSearchMailer.sh.
Before you create an external operation to e-mail the results
of a snapshot query, you must create the snapshot query and snapshot
portlet.
To create an external operation you must have the following
rights and privileges:
- Access Administration activity right
- At least Edit access to the Snapshot Query Mailer external operation
- At least Edit access to the parent folder (the folder that will
store the external operation)
- At least Select access to the job that will run this external
operation or Create Jobs activity right to create a job to run this
external operation
- If you have not already done so, edit SavedSearchMailer.bat or SavedSearchMailer.sh to specify the settings
for your mail server and customize the e-mail values.
The saved search mailer file is located on the computer that
hosts the Automation Service, iin Install_Dir\scripts (for example, C:\bea\alui\ptportal\6.5\scripts or /opt/bea/alui/ptportal/6.5/scripts).
You must replace the following argument values:
Argument |
Description |
SENDER |
The name you want to display as the From value in the automated
e-mails |
MAIL_SERVER |
Your SMTP mail server |
REPLYTO |
The e-mail address that users can reply to from the automated
e-mails |
Optionally, you can replace the following argument
values:
Argument |
Description |
USER |
The name of the user you want to send the automated e-mails |
PWD |
The password for the user that will send the automated e-mails |
MIMETYPE |
The MIME type you want to use for the automated e-mails |
SUBJECT |
The text you want to display in the automated e-mail subject
line By default the subject includes the name of the snapshot query
(represented by <search_name>) and the name of
the user receiving the results (represented by <name>).
|
BODY_HEADER |
The text you want to display at the top of the automated e-mail
body |
BODY_SEPARATOR |
Any code you want to use to generate a separation between the
header and the results |
BODY_FOOTER |
The text you want to display at the bottom of the automated
e-mail body |
- In the portal, click Administration.
- Open the snapshot portlet for which you want to e-mail
results.
- Click the Properties and Names page.
- Copy or make note of the Object ID, then close the snapshot portlet.
- Open the Intrinsic Operations folder.
- Select the Snapshot Query Mailer external operation and click .
- In the Target Folder dialog box, select the folder in which
you want to store your new external operation and click OK.
- Open the copy of the snapshot query mailer you just created.
- Replace 200 in the arguments with the object
ID of the snapshot query you want to e-mail.
- Click the Set Job page and complete
the following task:
- Click the Properties and Names page
and rename the external operation.
Set the job to run on a regular basis.