Sending a file to an email destination
With the AOPPRINT procedure, you can send the file to an email
destination instead of to a printer. You can specify the email addresses
of the primary and secondary recipients in one of these ways:
- Your administrator can specify the email address list for the
recipients in the printer definition in the Printer Inventory.
- You can specify the email addresses for the recipients using these
job attributes:
- Use this attribute:
- To specify the email addresses of the:
- mail-bcc-addresses
- Blind copy (bcc) recipients of an email. A bcc means
that other recipients of the email do not see the bcc recipient listed.
- mail-cc-addresses
- Copy (cc) recipients of an email. A cc means
that other recipients of the email can see the cc recipient listed.
- mail-to-addresses
- Primary recipients of an email.
- You can specify the email addresses for the recipients in an email
header. For information, see Creating an email header.
You can specify an address list in an alias file that your administrator
defines to z/OS UNIX sendmail.
For information, see Specifying the email address list in an alias file. Your administrator
can specify the name of the alias file in the printer definition,
or you can specify it in a job attribute.
The email has these characteristics:
- If the file contains text or line data, it can be included in
an email attachment or inline in the body of the email. If the file
contains data in another format (for example, PDF), the data is included
in an attachment. To include text or line data inline, specify the mail-inline-text job attribute. Or,
the administrator can select the Inline text and
line data field in the printer definition.
- The name of the attachment is the name specified in one of these:
IP PrintWay™ extended
mode:
- The mail-file-name job attribute
- DD:SYSIN
IP PrintWay basic
mode:
- The mail-file-name job attribute
- The sysout-dataset-name job attribute
- DD#SYSIN
The attachment name contains a suffix that indicates the
type of data in the file. For example, txt indicates text
format and pdf indicates PDF format.
- The subject of the email is the subject in the email header, the
value in the title-text job attribute, or the
default title your administrator specified in the Allocation section
of the printer definition. If none is specified, the user ID of the
user who ran the job is used.
- The sender is the user ID of the user who ran the job at the domain
name of the z/OS system. You can add a descriptive name or other
identifier of the sender in the mail-from-name job
attribute.
- You can receive replies from the email unless a firewall prevents
the z/OS system from receiving replies from the sending system.
To receive replies, use the z/OS UNIX mail or mailx command. To
use these commands, your ID must be a valid z/OS UNIX user ID. You can specify the email address that
recipients of an email can reply to in the mail-reply-address job
attribute. If none is specified, the value in the printer definition
is used.
|