NBSpool for MPE Reference Guide
Chapter 3
3-40
MAIL
The
MAIL
command converts spool file data to text format and sends it via HPDesk to a specified
user. This command requires that HPDesk be installed and enabled on the system. A user must be
specified in order to send any messages. The
CI
variable
DESKUSER
must first be defined before the
MAIL
command can be used. The format of the variable is as follows:
username[;[password][;node/sublocation]]
An example
DESKUSER
can be defined as follows:
:SETVAR DESKUSER "JOHN DOE;SECRET;QUEST/02"
When the first
MAIL
command is issued, NBSpool will attempt to log on as this user. Assuming it is
successful, the message will be sent according to the specified parameters. NBSpool will remain
logged on until it is terminated.
Mail Syntax
O> MAIL [subset];TO="username[;mailnode]"
[;NEWPRI=pri]
[;PURGE]
[;SUBJECT="subject"]
Mail Parameters
Parameter Description
subset
This parameter specifies the subset of spool files to be mailed. Turn to Chapter
2 for information on using subsets.
Username
This parameter specifies the name of the destination user as defined in the
HPDesk directory.
mailnode
This parameter specifies the node name of the destination user. This field is of
the form
nodename/sublocation
. This is necessary if the
username
exists on
more than one mail node.
Pri
This parameter specifies that each spool file will be set to this priority after the
mail message is successfully sent.
PURGE
This parameter purges the spool file when successfully sent.
Subject
A
1
to
60
character string which contains the subject of the message.