PMDF Programmer's Reference Manual


Previous Contents Index

2.1.1 Envelope & Header "From:" Address

The envelope "From:" address for a message to be sent should be specified with the PMDF_USER item code. With this item code, only a user name can be specified; PMDF_send will automatically append the official local host name to the name so as to produce a valid address.

The PMDF_ENV_FROM item can be used to specify an envelope "From:" address which is not a local address. This is usually not necessary: applications which enqueue non-local mail should probably be using the API routines rather than callable send.

If neither PMDF_USER or PMDF_ENV_FROM are specified, then the user name associated with the current process will be used for the envelope "From:" address. When PMDF_USER is used, the "From:" header line address will be derived from the envelope "From:" address; when PMDF_ENV_FROM is used, the "From:" header line will be derived from the user name of the current process. 2 Only privileged users can specify with PMDF_USER a user name different than that of the current process's. On OpenVMS systems, WORLD privilege as a default privilege is required. On UNIX systems, the process must have the same (real) UID as either the root or pmdf account. On NT systems, PMDF_send can only be used by privileged accounts such as Administrator.

Note

2 In either case, if a "From:" header line is supplied in an initial header, then a "Sender:" header line will be added to the message header. The initial "From:" header line will be left intact and the address specified and "Sender:" address will be derived from either the envelope "From:" address (PMDF_USER) or from the user name of the current process (PMDF_ENV_FROM).


Previous Next Contents Index