Hi Michele,
this is "works as designed" because for every iteration you're running SEND_MAIL - line by line.
IMHO the easiest solution is to use a CALL object to attach the entire report instead of the PREP_PROCESS sequence. If you need to keep the filter then use PREP_PROCESS and create a new output file (
WRITE_PROCESS) and finally send the file.
regards,
Peter
------------------------------
For AUTOMIC trainings please check
https://www.qskills.de/qs/workshops/automic/------------------------------
Original Message:
Sent: Jul 14, 2022 03:27 PM
From: Michele Adamski
Subject: Send job report in email
I'm trying to run a simple post process script to output the contents of a job's report into an email, but it sends each line in a separate email. There are approximately 30 lines in the job report, which is a directory listing.
Does anyone know how to correct this?