58
CoolSpools Spool Converter User Guide V6R1
Page:
129
www.ariadnesoftware.co.uk
EMAIL
–
Email the output?
Parameter
EMAIL
Applies to
commands:
CVTSPLCSV, CVTSPLHTML, CVTSPLPDF, CVTSPLRTF,
CVTSPLSAV, CVTSPLSPLF, CVTSPLSTMF, CVTSPLTIFF,
CVTSPLTXT, CVTSPLXL, CVTSPLXLS, CVTSPLXML, SAVSPLF
Dependent on: None
This parameter lets you tell CoolSpools to email the output as an attachment.
Please note that this facility is only available if you the CoolSpools Email (product
option 2) installed and licensed or on trial.
Options are:
*NO
The output is not emailed automatically as part of
running this command. You are still able to email
the output separately, either by running a
subsequent command or program or from a
CoolSpools exit program.
*YES
The output from this command will be emailed as
an attachment or attachments according to the
information you specify on the other email-related
parameters. Every time a new output file is
created, it will be emailed as a single attachment
to the recipients specified.
*ONE
The output from this command will be emailed as
an attachment or attachments according to the
information you specify on the other email-related
parameters. All output files created will be emailed
together as attachments at the end of the
conversion run.
If you specify EMAIL(*YES) or EMAIL(*ONE) and you are splitting a spooled file into
multiple stream files and the command you are running creates several stream files
as a result, each stream file will be emailed to the all of the recipients you list on the
EMAILTO parameter.
If each stream file that is created needs to go to different recipients, there are several
methods available to you for supplying the email address or addresses to use:
If the email address to be used is in the spooled file, you can extract it
using CoolSpools variables
.
Use the EMAILTO(*EMAILFILE) option and related EMAILFILE
parameter to tell CoolSpools to look up the email address(es) to be
used in a specified file. CoolSpools variables
can be used to extract
data from the spooled file at run time to be used as keys to read the
file. For example, you might take the customer number from the
spooled file and use it to read a customer file to obtain the email
address(es) for a particular invoice.