PMDF Programmer's Reference Manual
PMDF-PRM-6.0
Previous
| Contents
2.1 Sending a message
For each message to be sent with PMDF_send, an item list describing the
message to be sent must first be built. The entries in this item list
specify the message's From: and To: addresses as well as input sources
for the content of the message. The basic steps in sending a message
with callable SEND are:
- Build the item list to pass to PMDF_send:
- a. specify any special processing options (e.g.,
PMDF_BLANK, PMDF_NOIGNORE_ERRORS, etc.);
- b. specify the message's envelope From: address with the PMDF_USER
item;
- c. specify the message's To:, Cc:, and Bcc: addresses with the
PMDF_TO, PMDF_CC, and PMDF_BCC items;
- d. an initial message header may be specified through an input
source which supplies each of the initial message header lines
(PMDF_HDR_FILE, PMDF_HDR_PROC), or the content of individual message
header lines may be specified with individual item codes (PMDF_SUBJECT,
PMDF_REPLY_TO, PMDF_ORGANIZATION, etc.);
- e. specify the input sources for the message body with the
PMDF_MSG_FILE or PMDF_MSG_PROC items; and then
- f. terminate the item list with PMDF_END_LIST.
- Pass the item list to PMDF_send.
- Check the return status from PMDF_send.
To enqueue additional messages, simply repeat these steps. The entire
set of available item codes and their usage is given in Section 2.7 .
Previous
| Next
| Contents