This function is used to distribute E-mails. Note, that the spool file first has to be handled by a E-mail finishing definition before this function and that this P function should be triggered by the PRSPRINT spooled file only (which is generated by the email finishing definition).
P = Send PDF E-mail / Fax
Seqnbr Function 1.0 P Send spooled file as PDF email / Fax
Overlay name . . . . . . . . . __________ File set . . . . . . . . . . __________ or overlay selector . . . . . ________ Primary/Secondary set . . . . *PRI *PRI, *SEC Unicode output . . . . . . . . *INPUT *INPUT, *YES Merge overprint lines . . . . *NO *NO, *YES Color support . . . . . . . . *YES *NO, *YES Compress text . . . . . . . . *NO *NO, *YES
|
1,0 P User profile to run job . . . *SPLFOWNER *SPLFOWNER, user profile Hold email . . . . . . . . . . *NO *NO, *YES Save email . . . . . . . . . . *NO *NO, *YES PDF Back-Page type . . . . . . *DUP *NO *DUP *SMP.. Print PDF-file . . . . . . . . *YES *NO, *YES
|
1,0 P Output queue . . . . . . *DEFAULT Name, *DEFAULT, *INPUT Library . . . . . . . Form type . . . . . . . *STD Copies . . . . . . . . . *INPUT *INPUT, 1-255 Output spooled file name PDF_PRINT *INPUT, Name Print data stream . . . *PCL *PCL, *PDF
|
The first merge parameters are described for 1=Merge with Overlay.
Use Color support to tell InterForm400, if you want to attach black/white PDF files or color PDF files to the e-mails that are sent.
The Compress text option can compress the text inside the PDF file, but processing will take a bit longer.
You can tell InterForm400 to generate the emails while running as a specific user profile. That can be necessary, if you e.g. want the email to be placed in a specific outbox subfolder, which restricted authority.
If you hold the email (not supported for IBM SMTP), you can check out the resulting email via WRKMAILLOG before you decide if the email should be sent or not.
The save option will save a copy of the email in the IFS in /APF3812Mail/Log. This directory is not cleared by the APF3812/CLRMAILLOG command, which you should run on a regular basis.
PDF Back-Page type
This tells InterForm400 how to handle duplex back pages, if you have defined any for the overlay(s) used for the merge. Details for PDF output is covered here.
The possible values are:
*NO |
Include no page page overlays in the PDF result. |
*DUP |
Include blank pages, so that the PDF can be printed in duplex with back pages as specified for PCL output. |
*SMP |
Include the back page overlay pages without any blank pages, so this PDF is optimized for simplex printing (not duplex). |
*LST |
Include only the last back page in the PDF result - to remove duplicates in the PDF result. |
The options on the last screen above are only shown if you select *YES to print the PDF file. If so you can also specify the print data stream (PCL or PDF). Please notice that not all printers supports the PDF print data stream and that the requirements for RAM in the printer is higher when printing PDF compared to PCL.
Refer to this section for information of how to set up SMTP on the System I.
TIP: Remember to schedule a regular run of the APF3812/CLRMAILLOG command to delete old emails.
NOTE: In order to get PDF output you need to purchase the PDF module or the classic package for InterForm400.