Send the PDF file as e-mail

To specify that an output Portable Document Format (PDF) file is sent as e-mail, you can set up a mapping program for e-mail. For instructions to set up a mapping program for e-mail, see the Infoprint® Server for iSeries™ User's Guide.

There are two ways to send the output file as e-mail without using a mapping program:

After the PDF file creation, PSF retrieves the mail tag. The mail tag is on the printer file's User defined data (USRDFNDTA) parameter or the Start page group (STRPAGGRP) Data description specifications (DDS) keyword. If you do not specify an exit program, you must provide a valid e-mail address in the USRDFNDTA parameter or in the STRPAGGRP DDS keyword. PSF then electronically mails the output. It uses a Simple Mail Transfer Protocol (SMTP) server if one is specified in the PSF configuration object. If none is specified, it uses the Send Distribution (SNDDST) command . For instructions to create a mapping program, see the Infoprint Server for iSeries User's Guide.

Format of the printer file's USRDFNDTA mail information

The format of the mail information when it is specified in the printer file's USRDFNDTA parameter is:

USRDFNDTA('MAILTAG(80 bytes of text) MAILSENDER(10 byte name)')

The 80 bytes of text can contain a mail address or a tag. The mail exit routine converts tags into a mail address and an optional message. The MAILSENDER parameter is 10 bytes long and specifies the name of the user profile that is sending the file. This parameter overrides the PSF configuration object's PDFSENDER value.

Format of the STRPAGGRP mail tag

When you specify PDFMULT(*YES *SPLIT), the Name parameter of the STRPAGGRP DDS keyword can contain a mail tag. The mail tag can contain either a mail address or a tag. The mail exit routine converts tags into a mail address and an optional message. The STRPAGGRP name overrides a mail tag in the printer file's USRDFNDTA parameter.

Related information

Infoprint Server for iSeries User's Guide PDF